UnityEditor.SubstanceImporter.IsSubstanceParented C# (CSharp) Method

IsSubstanceParented() private method

private IsSubstanceParented ( ProceduralTexture texture, ProceduralMaterial material ) : bool
texture UnityEngine.ProceduralTexture
material UnityEngine.ProceduralMaterial
return bool
        internal static extern bool IsSubstanceParented(ProceduralTexture texture, ProceduralMaterial material);
        /// <summary>

Usage Example

示例#1
0
 internal static bool IsProceduralTextureSlot(Material material, Texture tex, string name)
 {
     if (material is ProceduralMaterial && tex is ProceduralTexture && SubstanceImporter.CanShaderPropertyHostProceduralOutput(name, (tex as ProceduralTexture).GetProceduralOutputType()))
     {
         return(SubstanceImporter.IsSubstanceParented(tex as ProceduralTexture, material as ProceduralMaterial));
     }
     return(false);
 }