public static object[] GetRange(EBendParameterName name) { switch (Engine.unitType) { case Units.Type.Metric: return(BendParameterMeta.NameRangesMetric[(int)name]); case Units.Type.Standard: return(BendParameterMeta.NameRangesStandard[(int)name]); } return(null); }
public BendParameter(EBendParameterName name, EBendParameterType type, Color color, object value, object valueObject = null, bool enabled = true) { this.name = name; this.type = type; this.color = color; this.value = value; this.valueObject = valueObject; // Make Color String m_ColorHexString = ((int)(color.r * 255)).ToString("X2") + ((int)(color.g * 255)).ToString("X2") + ((int)(color.b * 255)).ToString("X2") + ((int)(color.a * 255)).ToString("X2"); }
public BendParameter GetOutputParameter(EBendParameterName name) { return(m_OutputParameters.Find((bp) => bp.name == name)); }
public static string GetStringValue(EBendParameterName name) { return(BendParameterMeta.NameStrings[(int)name]); }