Memo
1
2
3
4
5
6
/// <summary> 컴포넌트를 최상단에 올리기 </summary>
[System.Diagnostics.Conditional("UNITY_EDITOR")]
private static void PutComponentOnTop(Component component)
{
for (int i = 0; i < 100 && UnityEditorInternal.ComponentUtility.MoveComponentUp(component); i++);
}