UnityEditor.SubstanceImporter.SetGenerateAllOutputs C# (CSharp) Method

SetGenerateAllOutputs() public method

Specify if the ProceduralMaterial needs to force generation of all its outputs.

public SetGenerateAllOutputs ( ProceduralMaterial material, bool generated ) : void
material UnityEngine.ProceduralMaterial
generated bool
return void
        public void SetGenerateAllOutputs(ProceduralMaterial material, bool generated)
        {
            if (material == null)
            {
                throw new ArgumentException("Invalid ProceduralMaterial");
            }
            ScriptingProceduralMaterialInformation materialInformation = this.GetMaterialInformation(material);
            materialInformation.generateAllOutputs = generated;
            this.SetMaterialInformation(material, materialInformation);
        }