Exemplo n.º 1
0
 public PopupAttribute(PopupSource sourceType, string methodName, ShaderPropType shaderPropType, bool hideLabel)
 {
     this.sourceType     = sourceType;
     this.methodName     = methodName;
     this.shaderPropType = shaderPropType;
     this.hideLabel      = hideLabel;
 }
Exemplo n.º 2
0
 /// <summary>
 /// An alternative [Popup] signature that avoids enums to compile with U#
 /// </summary>
 /// <param name="sourceType">Can be "method", "animator", "behaviour" or "shader"</param>
 /// <param name="methodName"></param>
 /// <param name="hideLabel"></param>
 /// <param name="shaderPropType">Can be "float", "color" or "vector"</param>
 public PopupAttribute(string sourceType, string methodName, string shaderPropType, bool hideLabel)
 {
     this.sourceType     = sourcesMap.ContainsKey(sourceType) ? sourcesMap[sourceType] : PopupSource.Method;
     this.shaderPropType = shaderPropsMap.ContainsKey(shaderPropType) ? shaderPropsMap[shaderPropType] : ShaderPropType.Float;
     this.hideLabel      = hideLabel;
     this.methodName     = methodName;
 }
Exemplo n.º 3
0
 public PopupAttribute(PopupSource sourceType, string methodName, ShaderPropType shaderPropType)
 {
     this.sourceType     = sourceType;
     this.methodName     = methodName;
     this.shaderPropType = shaderPropType;
 }