UnityEditor.ShaderUtil.HasInstancing C# (CSharp) Method

HasInstancing() private method

private HasInstancing ( Shader s ) : bool
s UnityEngine.Shader
return bool
        internal static extern bool HasInstancing(Shader s);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
        public bool EnableInstancingField()
        {
            if (!ShaderUtil.HasInstancing(m_Shader))
            {
                return(false);
            }
            Rect r = GetControlRectForSingleLine();

            EnableInstancingField(r);
            return(true);
        }
All Usage Examples Of UnityEditor.ShaderUtil::HasInstancing