If I will use drag script from needle, and then constrain movement script from unity. Its working in viewport but after build its not. Only drag script from needle. Is there any priority of scripts? Or how lock movement is X,Y axis and allow it only in Z… any sourcee fro studiing?
@marcel yes I see, no problem to write or learn type scrip if it will solve my problem. I though that unity scripts and needle scripts can be both used…
They can but they basically are just used in Unity to setup your data and settings which is then directly exported to components in Needle Engine (if you have a matching Typescript component) where you can apply the settings. That’s how we translated many Unity components for example (just make a typescript script with the same class name as the Unity class for example)
When you see this blue text on a component it means it is translated/has a matching typescript class. You can click on it to see the code (or to edit it if it’s your own)
Or I can add buttons like OPEN and CLOSED and set OPEN Y position to 100 and CLOSED position to 0 and just animate roof. I need to show whats inside. SO maybe some send to position example in needle should be enought for me
For the animation you can just setup an animatorcontroller with two states (open and closed) and then make a transition by maybe setting a trigger (from a Unity button onClick event for example)
Just as extra context, that component is unfortunately currently not supported (you see that because it doesn’t have the blue link to a matching TypeScript component below the component header) - so Marcel’s way of adding a new script that does what you need is recommended here