private CanShaderPropertyHostProceduralOutput ( string name, ProceduralOutputType substanceType ) : bool | ||
name | string | |
substanceType | ProceduralOutputType | |
return | bool |
internal static extern bool CanShaderPropertyHostProceduralOutput(string name, ProceduralOutputType substanceType);
[MethodImpl(MethodImplOptions.InternalCall)]
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); }