Unity3D record
Script type introduced
using UnityEditor;
public class SystemEditor : EditorWindow {
[MenuItem("Window/AddPatternToSystem")]
}
Gets the object of prefabricated way
var prefeb = UnityEditor.PrefabUtility.GetPrefabParent(childTransform.gameObject);
if (prefeb != null)
{
gameObject = prefeb as GameObject;
}
Serialization introduced
If the content on the script editor does not appear necessary to add class can be serialized, otherwise, no ** / editor on
[System.Serializable]
public class Demo
{
}
Modify the script execution order
When running with multiple scripts want to adjust the order of execution Start.
Click the class file -> Inspector view, click Execution Order ... button
click on the lower right corner of the "+" drop-down window will pop up, including all the scripts in the game. After the addition is complete script, Default Time below the smaller the value of the row in front of the first implementation of the script, the script is not executed if the default order will be provided.
UNITY execution order frame