internal static extern bool HasInstancing(Shader s); [MethodImpl(MethodImplOptions.InternalCall)]
public bool EnableInstancingField() { if (!ShaderUtil.HasInstancing(m_Shader)) { return(false); } Rect r = GetControlRectForSingleLine(); EnableInstancingField(r); return(true); }