Edit() public method

public Edit ( GameObject _go ) : void
_go GameObject
return void
コード例 #1
0
    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    public override void OnInspectorGUI()
    {
        // DrawDefaultInspector();
        GUILayout.BeginHorizontal();
        GUILayout.FlexibleSpace();
        if (GUILayout.Button("Edit...", GUILayout.Width(50), GUILayout.Height(20)))
        {
            exLayerEditor editor = exLayerEditor.NewWindow();
            editor.Edit((target as exLayerMng).gameObject);
        }
        GUILayout.Space(5);
        GUILayout.EndHorizontal();
    }