BS 0.1 基础构建完成 / 0.2 Visual 同为Unity UI控件部分
This commit is contained in:
20
Convention/[ES3]/Easy Save 3/Scripts/ES3GameObject.cs
Normal file
20
Convention/[ES3]/Easy Save 3/Scripts/ES3GameObject.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[ExecuteInEditMode]
|
||||
public class ES3GameObject : MonoBehaviour
|
||||
{
|
||||
public List<Component> components = new List<Component>();
|
||||
|
||||
/* Ensures that this Component is always last in the List to guarantee that it's loaded after any Components it references */
|
||||
private void Update()
|
||||
{
|
||||
if (Application.isPlaying)
|
||||
return;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
UnityEditorInternal.ComponentUtility.MoveComponentDown(this);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user