public ReflectedCurveGUINode(ReflectedObjectGUINode parent, AddTweakableParamGUI gui, FieldInfo fieldInfo, string field, bool isLeaf, string inputMin, string inputMax, string inputStep, bool setOnlyOnLaunchPad) : base(parent, gui, fieldInfo, field, isLeaf, inputMin, inputMax,inputStep, setOnlyOnLaunchPad) { inputMin = "0"; inputMax = "0"; inputStep = "0"; setOnlyOnLaunchPad = false; }
public ReflectedObjectGUINode(ReflectedObjectGUINode parent, AddTweakableParamGUI gui, FieldInfo fieldInfo, string field, bool isLeaf, string inputMin, string inputMax, string inputStep, bool setOnlyOnLaunchPad) { m_parent = parent; m_gui = gui; m_fieldInfo = fieldInfo; m_field = field; m_isLeaf = isLeaf; if (inputMin != null) m_inputMin = inputMin; if (inputMax != null) m_inputMax = inputMax; if (inputStep != null) m_inputStep = inputStep; m_setOnlyOnLaunchPad = setOnlyOnLaunchPad; }
private static AddTweakableParamGUI CreateInstance() { if (s_gameObjectInstance == null) { s_gameObjectInstance = new GameObject("AddTweakableParamGUI", typeof(AddTweakableParamGUI)); UnityEngine.Object.DontDestroyOnLoad(s_gameObjectInstance); s_singleton = s_gameObjectInstance.GetComponent<AddTweakableParamGUI>(); } return s_singleton; }