Input controller not working when deployed on browser

Hi, just trying my first steps with Needle. I have exported a simple scene where I am using Unity Starter Assets (Kyle robot) and a Cinemachine virtual camera to follow the movements. I have installed Needle and setup the Exporter object as described in Create a new scene from scratch from here Getting Started & Installation | Needle Engine Documentation.
My problem is that when I run play and the scene is exported in the Browser by Needle, the controller input does not work (arrow keys or any other controller input key do nothing).

What should I do to export the controller input correctly using Needle?

Original Post on Discord

by user 832577308644212766

Hi, we don’t have builtin support for Unity’s Cinemachine package right now - please note that Needle Engine doesnt automatically compile your (or Unity’s) C# scripts to webassembly.

To get started with using a character you can download for example our samples via the menu item “Needle Engine/Explore Samples” or Needle Engine Samples

Hi @marcel :cactus: , thanks for answering!
So basically all the scripting logic is not exported by Needle right? Only the assets are exported, I have to add all the scripting logic using typescript/threejs manually, correct?
Just to understand what is correct workflow when working with Unity/Needle :slightly_smiling_face:

by user 832577308644212766

Yes basically. We have support for some of Unity’s components (e.g. Animator, Timeline, Particles, Unlit ShaderGraph, UI) but not all :slightly_smiling_face: You can find an overview here: Feature Overview | Needle Engine Documentation

We automatically export assets (models, materials, meshes, animations and such) and when you have a Needle Engine component in typescript with a matching name for a C# component you get all the data associated with it (including all references etc). That also includes ScriptableObjects. The logic of the component has to be written by you in js/ts tho :slightly_smiling_face:

Ah very interesting thank you! I am going to read the Needle scripting docs then

by user 832577308644212766

Alright, feel free to ask if anything else is unclear or missing in the docs

@marcel :cactus: FYI I have this weird glitch on some of the sample at Needle Engine Samples

by user 832577308644212766

Ah yes that was a bug in a few versions back caused by the website zoom (are you on 100%?) - this should be fixed in current versions. But the sample has not been re-deployed yet. cc @kipash :cactus: :slightly_smiling_face:

Ah, I’ll adjust the tests to mark these versions as outdated so we can fix them all asap :+1:

125%

by user 832577308644212766

Ok. good to know - then it should be fine when you change it to 100%?!

Yes I can confirm that at 100% the glitch is gone

by user 832577308644212766

Is it possible to download the project relative to one of the samples?

by user 832577308644212766

What do you mean by “Relative to one of the samples” ? You can download either the repository directly containing all the samples + the project we use or you can use the menu item (Needle Engine/Explore Samples) to download and install the samples package

Do you mean this? https://github.com/needle-tools/needle-engine-samples

by user 832577308644212766

Tried to open one of the sample but Unity complains it is read only, any idea?

by user 832577308644212766

What Unity version do you use?

2022.3.11f1

by user 832577308644212766