- Home /
 
               Question by 
               Bongmo · Sep 06, 2020 at 10:43 AM · 
                shadertexturematerialrenderqueue  
              
 
              3d Object always behind with Render Queue doesn't work?
- I've added a cube object with position (0, 0, 0) and sphere object with position (0.5, 0, -3). 
- I've added textures 
- I've added materials 

I want to move the sphere behind of the cube object and other objects with render queue.
I want, that the sphere always stays at the back.
I've added this script on the sphere:
 using UnityEngine;
 public class RenderQueueTest : MonoBehaviour
 {
     public int renderQueuePosition = -1;
     void Start()
     {
         GetComponent<Renderer>().material.renderQueue = renderQueuePosition;
     }
 }
The script doesn't helped.
I've also tried to change the sphere material render queue in the inspector without success.
Default render queue of the sphere material is: 2000
I changed it to: 1999 (doesn't work)
 
                 
                question1-renderqueue.png 
                (92.2 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                