I just started to learn Babylon JS + Unity exporter. I watched video tutorials (rotating cube).
However, I couldn’t find few things.
Script component - So in Unity when I try to make mesh component script, it doesn’t have. So I made script using “Script components” instead. is it fine?
on Rotator.ts
in the update funciton,
“this.mesh.rotation.y” is not working. is there any new wait to access the unity gameObject components (Mesh) ?
on Unity, I can’t add "using Unity3D2Babylon " anymore.
Documenttation for the new version has not been updated yet. But basically… There is NO Mesh, Camera or Light component any more… There is just the BABYLON.ScriptComponent
The script component has a transform so to move a transform from script
this.transform.position.z += 0.25;
Take a look at the video from this thread… i setup a new project and bake light
So while transform.rotationQuaternion is not null… transform.rotation is ignored
So can update transform.rotation from the transform.rotationQuaternion.toEularAngles and then null transform.rotationQuaternion = null in the awake function … then your code will work