WriteToMaterialPropertyBlock() public méthode

public WriteToMaterialPropertyBlock ( MaterialPropertyBlock materialblock, int changedPropertyMask ) : void
materialblock UnityEngine.MaterialPropertyBlock
changedPropertyMask int
Résultat void
 public static void SetupMaterialPropertyBlock(MaterialProperty materialProp, int changedMask, Renderer target)
 {
   MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
   target.GetPropertyBlock(materialPropertyBlock);
   materialProp.WriteToMaterialPropertyBlock(materialPropertyBlock, changedMask);
   target.SetPropertyBlock(materialPropertyBlock);
 }