using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Camera))] public class TestCameraSortByY : MonoBehaviour { private Camera camera; // Start is called before the first frame update void Start() { camera = GetComponent(); camera.transparencySortMode = TransparencySortMode.CustomAxis; camera.transparencySortAxis = Vector3.up; } // Update is called once per frame void Update() { } }