UnityEditor.SubstanceImporter.SetMaterialOffset C# (CSharp) Method

SetMaterialOffset() public method

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

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