Пример #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Editor Window"))
     {
         OnHitEffectEditorWindow.Open((OnHitEffects)target);
     }
 }
Пример #2
0
    /* @brief Opens the editor window for the On Hit Effects object.
     * @param The script that will be read from for properties (OnHitEffects).
     */
    public static void Open(OnHitEffects _dataObject)
    {
        OnHitEffectEditorWindow window = GetWindow <OnHitEffectEditorWindow>("On Hit Effect Editor");

        window.serializedObject = new SerializedObject(_dataObject);
    }