GetProperty() public method

public GetProperty ( string name ) : UnityEditor.SerializedProperty
name string
return UnityEditor.SerializedProperty
Example #1
0
 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;
 }
		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;
        }
		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");
		}
Example #5
0
 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");
 }
 void Init(SerializedModule m, string name)
 {
     maxColor = m.GetProperty(name, "maxColor");
     minColor = m.GetProperty(name, "minColor");
     minMax   = m.GetProperty(name, "minMax");
 }