文档

Unity Engine

Unity Engine

EnableInstancingField

Display UI for editing material's render queue setting.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

EnableInstancingField()

Display UI for editing material's render queue setting.
public bool EnableInstancingField()

Returns

Type

Description

boolTrue if the material's shader supports instancing and the UI is displayed. Otherwise, false.

Remarks

Returns true if the UI is indeed displayed i.e. if the material's shader supports instancing.
Additional Resources: Material.enableInstancing.

EnableInstancingField(Rect)

Display UI for editing material's render queue setting within the specified rect.
public void EnableInstancingField(Rect r)

Parameters

The rect to draw the control in.

Remarks

Additional Resources: Material.enableInstancing.