Property prefab
prefab
Gets or sets the main prefab used by mesh-based details.
public GameObject prefab { get; set; }
Property Value
- GameObject
Remarks
This field is consumed only when renderMode is UnityEngine.DetailRenderMode.VertexLit. Unity Terrain assigns it to UnityEngine.DetailPrototype.prototype, and Polaris creates a detail-object grass prototype from it.