public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1) { this.name = name; this.type = type; this.scope = scope; this.arrayLength = arrayLength; }
public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1) { this.name = name; this.type = type; this.scope = scope; this.arrayLength = arrayLength; this.isPrivate = string.IsNullOrEmpty(name) || name[0] == '_'; }
public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1) { this.name = name; this.type = type; this.scope = scope; this.arrayLength = arrayLength; this.isPrivate = string.IsNullOrEmpty(name) || name[0] == '_' || BuiltinShaderFields.GetIndex(name) != BuiltinShaderFields.InvalidIndex; }
public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength, string editorTypeTag, string description, float minValue, float maxValue) { this.name = name; this.type = type; this.scope = scope; this.arrayLength = arrayLength; this.editorTypeTag = editorTypeTag; this.description = description; this.minValue = minValue; this.maxValue = maxValue; this.isPrivate = string.IsNullOrEmpty(name) || name[0] == '_'; }