mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-13 06:54:45 +01:00
17 lines
368 B
C#
17 lines
368 B
C#
using UnityEngine;
|
|
|
|
[RequireComponent(typeof(TrailRenderer))]
|
|
public class TrailRendererSortLayer : MonoBehaviour
|
|
{
|
|
public string sortingOrderName = "Default";
|
|
|
|
public int sortingOrder;
|
|
|
|
private void Start()
|
|
{
|
|
TrailRenderer component = GetComponent<TrailRenderer>();
|
|
component.sortingLayerName = sortingOrderName;
|
|
component.sortingOrder = sortingOrder;
|
|
}
|
|
}
|