public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol /* ref string metaStr */) { if (m_defaultValue != null) { defaultCol.AddValue(PropertyName, m_defaultValue); } return(true); }
public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol) { if (m_defaultTextureArray != null) { defaultCol.AddValue(PropertyName, m_defaultTextureArray); } return(true); }
public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol) { if (m_proceduralMaterial != null) { Texture[] textures = m_proceduralMaterial.GetGeneratedTextures(); for (int i = 0; i < textures.Length; i++) { defaultCol.AddValue(textures[i].name, textures[i]); } } return(true); }
public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol /* ref string metaStr */) { if (m_defaultValue != null) { defaultCol.AddValue(m_propertyName, m_defaultValue); //string data2 = AssetDatabase.AssetPathToGUID( AssetDatabase.GetAssetPath( _defaultValue ) ); //metaStr += ( " - " + _propertyName + ": {fileID: " + _metafileId + ", guid: " + data2 + ", type: 3}\n" ); } //else //{ // metaStr += ( " - " + _propertyName + ": {instanceID: 0}\n" ); //} return(true); }