🧡#Unity help

marwi123

Hi, could you share more info what you tried or whats not working? Please also include Unity and Needle Engine versions

D

it works now but iam stuck at This could mean you forgot to add a npmdef to your ExportInfo this

D

i dont get it i have copied the sample script for play animation on click changed it to play animaiton on trigger but its not working

marwi123

Hi, could you be more specific: copied it to where? Make sure it's in your web projects scripts directory (src/scripts) or if you created a npmdef package make sure the npmdef asset is added to the exportinfo dependencies array (just as in the samples).

D

it will have a single character wolf will be player in multiplayer environment wolf will have movements animations and attack animations players can attack each othe

D

it would really appreciate if you could guide me especially in multiplayer implementation Thank you

D

iam using character controller but when i check the firstperson multiplayer scene from samples it works just fine what am i missing there

hybridherbst

looks like you're not spawning the character with PlayerSync? each character should be controlled by one user. I recommend checking out the multiplayer sample for how the scene is set up πŸ™‚

D

ok what i did is that i made this character child of that multiplayer character then turn off the main sphere this works now let me share the video with you

D

now the issue which iam facing is the animations when i run both of our animations are being played but if the other player is controlled by someone else then i dont see the animations being played so its some kind of animation sync issue

D

what is export info i wrote a new script and i get this error forgot to add npmdef to export info i am unable to understand how this works

marwi123

ExportInfo is the old name for the Needle Engine component - it has a dependencies array. That's relevant if you use npmdefs

D

yes right clicked created this file open its location then pasted my script right next to it the script adds into this file then i place it in dependency arry but i get errors when i do that

D

ok i have solved most of the issues now iam stuck at animation sync when the other player moves i cant see its runing animations but i can see falling animation also jumping animaitons does not work either

D

yes i applied that ok the thing is when i use buttons example to play animations they works fine but when i use character controller when the animaitons of running is played by that it does not sync

D

do you have any example where character controller animations gets synced i have seen a youtube vide but he made a custom script for that purpose

D

<@519636239658385605> can we achieve Remote Assist just like microsoft hololense using dawing and screen sharing needle ?

hybridherbst

One thing worth noting though is that none of the current-gen headsets allow capturing the AR stream as video (neither in native nor in browser). Android phones allow it