private HasInstancing ( |
||
s | ||
Résultat | bool |
public bool EnableInstancingField() { if (!ShaderUtil.HasInstancing(m_Shader)) { return(false); } Rect r = GetControlRectForSingleLine(); EnableInstancingField(r); return(true); }
internal static bool MaterialsUseInstancingShader(SerializedProperty materialsArray) { if (materialsArray.hasMultipleDifferentValues) { return(false); } for (int i = 0; i < materialsArray.arraySize; i++) { Material material = materialsArray.GetArrayElementAtIndex(i).objectReferenceValue as Material; if (material != null && material.shader != null && ShaderUtil.HasInstancing(material.shader)) { return(true); } } return(false); }
public bool IsInstancingEnabled() { return(ShaderUtil.HasInstancing(m_Shader) && (targets[0] as Material).enableInstancing); }
public bool IsInstancingEnabled() { return(ShaderUtil.HasInstancing(m_Shader) && m_EnableInstancing.boolValue); }