blob: 585f2c30351c9c25aee46542a79686abb961e3ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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>();
camera.transparencySortMode = TransparencySortMode.CustomAxis;
camera.transparencySortAxis = Vector3.up;
}
// Update is called once per frame
void Update()
{
}
}
|