Hello everyone
I have a 2D background and it is composed of several elements
and a 3D character circulating has it I want my character to go behind these elements
is this 2D technique supported for 3D models and how does it work
Hello everyone
I have a 2D background and it is composed of several elements
and a 3D character circulating has it I want my character to go behind these elements
is this 2D technique supported for 3D models and how does it work
Yes. You can implement it a number of ways:
OR
OR
Entirely up to you for approach, as each has limitations and implications.
thanks a lot for your help
I tried to create a layer on my character and my UI environment on the default layer
then i try to write this script
public Camera cam ;
void Update () {
if (Physics.Raycast (transform.position, Vector3.right, Mathf.Infinity)) {
cam.cullingMask = 1 << 0;
}
}
I rather noticed that my person is deactivated from the launch of the game
because to put my character behind the UI his last lose their graphic resolution