Hello! I’m following your simple use case example of adding a Rotate.ts script to a game object here. The generated C# file is getting created in Unity, and I’ve added the script to my game object. But it’s not rotating, and I’m seeing this error: Property 'rotateY' does not exist on type 'GameObject'.. Which when I print this, that is correct in saying the method rotateY does not exist, but I was wondering, if that’s not correct, is it possible these docs aren’t up to date? Or am I missing something else that makes this a rotate-able object?
The error in VSCode comes in & out but the main issue is that the game object doesn’t seem to be rotating? When I look at this.gameObject in the console, I don’t see a rotateY method in there, so that might be why it’s not working?
So is there a place/way that I can actually inject some custom code on scene initialization? As opposed to adding code to a specific game object?
My goal right now is to add a GLB model into the Unity scene, but if I can do it more three.js-ey that would be ideal. So in Three.js I would just write something like: