accessing the Transform of Asset.ObjectPrefab
can anyone please explain how I can receive the Transform of an Asset.ObjectPrefab ? What is the relation between this and the SceneObject? I try to acess world position of my Prefab Object
@input Asset.ObjectPrefab emitterObject)
but it fails with
"[Scenarium] TypeError: undefined not callable (property 'getTransform' of [object Object])
at [anon] (3D Emitter adjusted.js:290) preventsyield"
can anyone please explain?
A prefab is only an asset which when instantiated could contain a scene object. So you should be importing the objects it creates instead using @input SceneObject
Thanks for clearifying Brandon.