public SerializedProperty GetProperty(string structName, string propName) { SerializedProperty serializedProperty = this.m_Object.FindProperty(SerializedModule.Concat(SerializedModule.Concat(this.m_ModuleName, structName), propName)); if (serializedProperty == null) { Debug.LogError("GetProperty: not found: " + SerializedModule.Concat(SerializedModule.Concat(this.m_ModuleName, structName), propName)); } return(serializedProperty); }
public SerializedProperty GetProperty(string name) { SerializedProperty property = this.m_Object.FindProperty(SerializedModule.Concat(this.m_ModuleName, name)); if (property == null) { Debug.LogError((object)("GetProperty: not found: " + SerializedModule.Concat(this.m_ModuleName, name))); } return(property); }
private void Init(SerializedModule m, string name) { this.m_MaxGradient = m.GetProperty(name, "maxGradient"); this.m_MinGradient = m.GetProperty(name, "minGradient"); this.m_MaxColor = m.GetProperty(name, "maxColor"); this.m_MinColor = m.GetProperty(name, "minColor"); this.m_MinMaxState = m.GetProperty(name, "minMaxState"); this.m_AllowColor = true; this.m_AllowGradient = true; this.m_AllowRandomBetweenTwoColors = true; this.m_AllowRandomBetweenTwoGradients = true; }
void Init(SerializedModule m, string name) { m_RootProperty = m.GetProperty(name); m_MaxGradient = m.GetProperty(name, "maxGradient"); m_MinGradient = m.GetProperty(name, "minGradient"); m_MaxColor = m.GetProperty(name, "maxColor"); m_MinColor = m.GetProperty(name, "minColor"); m_MinMaxState = m.GetProperty(name, "minMaxState"); m_AllowColor = true; m_AllowGradient = true; m_AllowRandomBetweenTwoColors = true; m_AllowRandomBetweenTwoGradients = true; m_AllowRandomColor = false; }
public SerializedMinMaxColor(SerializedModule m) { this.Init(m, "curve"); }
private void Init(SerializedModule m, string name) { this.maxColor = m.GetProperty(name, "maxColor"); this.minColor = m.GetProperty(name, "minColor"); this.minMax = m.GetProperty(name, "minMax"); }
public SerializedMinMaxColor(SerializedModule m, string name) { this.Init(m, name); }
public string GetUniqueCurveName() { return(SerializedModule.Concat(this.m_Module.GetUniqueModuleName(), this.m_Name)); }
public SerializedMinMaxGradient(SerializedModule m, string name) { this.Init(m, name); }
public SerializedMinMaxGradient(SerializedModule m) { this.Init(m, "gradient"); }
public string GetUniqueModuleName(UnityEngine.Object o) { return(SerializedModule.Concat("" + o.GetInstanceID(), this.m_ModuleName)); }
public string GetUniqueModuleName() { return(SerializedModule.Concat(string.Empty + this.m_Object.targetObject.GetInstanceID(), this.m_ModuleName)); }
void Init(SerializedModule m, string name) { maxColor = m.GetProperty(name, "maxColor"); minColor = m.GetProperty(name, "minColor"); minMax = m.GetProperty(name, "minMax"); }
public string GetUniqueCurveName() { return(SerializedModule.Concat(this.m_Module.GetUniqueModuleName(this.m_Module.serializedObject.targetObject), this.m_Name)); }