コード例 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        CubemapCaptureScript myScript = (CubemapCaptureScript)target;

        myScript.TextureSize   = EditorGUILayout.IntField("Texture Size", myScript.TextureSize);
        myScript.PreviewCamera = EditorGUILayout.Toggle("Preview", myScript.PreviewCamera);
        if (GUILayout.Button("Build Cubemap"))
        {
            myScript.BuildCubemap();
        }
    }
コード例 #2
0
    void OnEnable()
    {
        CubemapCaptureScript myScript = (CubemapCaptureScript)target;

        myScript.Setup();
    }
コード例 #3
0
    void OnDisable()
    {
        CubemapCaptureScript myScript = (CubemapCaptureScript)target;

        myScript.Cleanup();
    }