UnityEditor.SubstanceImporter.SetMaterialScale C# (CSharp) Method

SetMaterialScale() public method

Set the material scale, which is used for all the textures that are part of this ProceduralMaterial.

public SetMaterialScale ( ProceduralMaterial material, Vector2 scale ) : void
material UnityEngine.ProceduralMaterial
scale Vector2
return void
        public void SetMaterialScale(ProceduralMaterial material, Vector2 scale)
        {
            if (material == null)
            {
                throw new ArgumentException("Invalid ProceduralMaterial");
            }
            ScriptingProceduralMaterialInformation materialInformation = this.GetMaterialInformation(material);
            materialInformation.scale = scale;
            this.SetMaterialInformation(material, materialInformation);
        }