Create image from scene object
Kinie Kusuma
Posts: 1
Is there any ways to create an image from scene object or components inside scene object programmatically? i want to make my scene object become background
1
Answers
-
Yes! You can use createComponent on it, like so:
//@input SceneObject obj //@input Asset.Texture tex var img = script.obj.createComponent("Component.Image"); img.mainPass.baseTex = script.tex;
1