Tween Manager Error
Hi everyone, I want to set a start value from a tween dynamically for spawning but when i use this:
global.tweenManager.setStartValue(SceneObject sceneObject, string tweenName, newStartValue)
i get this error:
[Scenarium] TypeError: cannot read property 'getComponentCount' of undefined
at findTween (Scripts/Tween/TweenManager.js:556)
at setStartValue (Scripts/Tween/TweenManager.js:390)
at [anon] (Scripts/Spawner.js:22) preventsyield
Anyone have any advice?
To double-check, are you passing in your object and tween name to that script? It seems like the error is reporting that the object does not exist.
You can do something like:
and then pass in your object and other values through the Inspector panel when you select the object that contains your script.
Let me know if you need any clarification.
Sorry for the late response, i am on vacation and just got back to working on this project. I have another question but I will make a new post for it. I was doing what you said and it wasn't working. Now i am using particles but i don't know if that is what I should be using.