Documentation

Unity Engine

Unity Engine

useInstancing

Indicates whether this detail prototype uses GPU Instancing for rendering.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public bool useInstancing { get; set; }

Remarks

When you set this value to true, Unity uses the Material and Shader used by the DetailPrototype.prototype GameObject for rendering.
Currently this setting is only effective when you specify DetailRenderMode.VertexLit as the DetailPrototype.renderMode.