protected virtual void InitializePropertiesIfNeeded()
 {
     if (Properties != null)
     {
         return;
     }
     Properties = new MaterialProperties(GetComponent <MeshRenderer>());
     PrepareProperties(Properties);
     Properties.Apply();
 }
Exemplo n.º 2
0
 internal ColorProperty(MaterialProperties properties, string name) : base(properties, name)
 {
 }
 protected abstract void PrepareProperties(MaterialProperties materialProperties);
Exemplo n.º 4
0
 public static IProperty <float> GetFloatProperty(this MaterialProperties properties, string name)
 {
     return(new FloatProperty(properties, name));
 }
Exemplo n.º 5
0
 public static IProperty <ComputeBuffer> GetComputeBufferProperty(this MaterialProperties properties, string name)
 {
     return(new ComputeBufferProperty(properties, name));
 }
Exemplo n.º 6
0
 public static IProperty <Matrix4x4> GetMatrixProperty(this MaterialProperties properties, string name)
 {
     return(new MatrixProperty(properties, name));
 }
Exemplo n.º 7
0
 public static IProperty <Vector4> GetVectorProperty(this MaterialProperties properties, string name)
 {
     return(new VectorProperty(properties, name));
 }
 internal ComputeBufferProperty(MaterialProperties properties, string name) : base(properties, name)
 {
 }