Answer the question
In order to leave comments, you need to log in
How do I know if the UI editor is no longer visible in the inspector?
I have a task to save the properties settings of the custom editor.
#define NONTRAIL
using UnityEngine;
using System.Collections;
using UnityEditor;
using System;
[CustomEditor(typeof(PhotoPoser))]
public class PhotoPoserGUI : Editor
{
private bool run = false;
private object[] tab;
public override void OnInspectorGUI()
{
PhotoPoser pp = (PhotoPoser)target;
if (run == false)
{
DataReadWriter.ReadParams (this.GetType().ToString(), out tab);
DataReadWriter.ReadParams (pp.GetType().ToString(), out pp.sizes);
run = true;
}
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question