UnityEditor.ProceduralMaterialInspector.ProceduralPlatformSetting.Apply C# (CSharp) Method

Apply() public method

public Apply ( ) : void
return void
            public void Apply()
            {
                foreach (ProceduralMaterial material in this.targets)
                {
                    SubstanceImporter atPath = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(material)) as SubstanceImporter;
                    if (this.name != "")
                    {
                        if (this.m_Overridden)
                        {
                            atPath.SetPlatformTextureSettings(material, this.name, this.maxTextureWidth, this.maxTextureHeight, this.m_TextureFormat, this.m_LoadBehavior);
                        }
                        else
                        {
                            atPath.ClearPlatformTextureSettings(material.name, this.name);
                        }
                    }
                    else
                    {
                        atPath.SetPlatformTextureSettings(material, this.name, this.maxTextureWidth, this.maxTextureHeight, this.m_TextureFormat, this.m_LoadBehavior);
                    }
                }
            }
ProceduralMaterialInspector.ProceduralPlatformSetting