Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EnableInstancingField

Display UI for editing material's render queue setting.
Read time 1 minuteLast updated a day ago

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.