Always visible image in the 3D scene
Hello !
I'm developping a little game and i want to spawn an image in the 3D scene parented to an object on which i have the reference on.
The only issue i'm facing is that the Image renders behind the other objects in the scene.
I would like it to be always rendered last so that it is always visible.
I tried playing with the render order by placing the prefabs on the scene, "Applying" and then deleting them, with no success.
Simplified example code :
//@input Asset.ObjectPrefab ImageToSpawn
var MyParentSceneObject; // not null
script.ImageToSpawn.instantiate(MyParentSceneObject);
How should I do it ?
Thanks for your help !
Have you ensured that the parent object is at the bottom of the layer stack? Also make sure the layer in which the prefab is applied to when clicking apply is a layer tied to the camera in the last order render under scene config.
Ok thank you for your answer !
I resolved it by creating another scene camera with a layer associated, and my image has the same. I put this camera after my other scene camera but before my orthographic camera and everything runs fine.
Thanks again, i was not aware of that scene config settings !