Class DetailTemplate
[CreateAssetMenu(menuName = "Vista/Detail Template")]
[HelpURL("https://docs.google.com/document/d/1zRDVjqaGY2kh4VXFut91oiyVCUex0OV5lTUzzCSwxcY/edit#heading=h.61r5f6yn6s6k")]
public class DetailTemplate : ScriptableObject
- Inheritance
-
ObjectScriptableObjectDetailTemplate
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Properties
- alignToSurface
Gets or sets whether Polaris should align spawned details to the terrain normal.
- bendFactor
Gets or sets the bend factor used by wind-reactive detail rendering.
- castShadow
Gets or sets the shadow-casting mode used by Polaris detail prototypes.
- density
Gets or sets the base density multiplier used when converting generated density maps into terrain detail counts.
- holeEdgePadding
Gets or sets how aggressively Unity Terrain removes details near terrain holes.
- layer
Gets or sets the rendering layer assigned to Polaris detail prototypes.
- maxHeight
Gets or sets the maximum instance height multiplier.
- maxWidth
Gets or sets the maximum instance width multiplier.
- minHeight
Gets or sets the minimum instance height multiplier.
- minWidth
Gets or sets the minimum instance width multiplier.
- noiseSpread
Gets or sets the noise spread used by Unity Terrain's detail placement.
- pivotOffset
Gets or sets the vertical pivot offset used by Polaris grass rendering.
- prefab
Gets or sets the main prefab used by mesh-based details.
- prefabVariants
Gets or sets additional prefab variants for mesh-based details.
- primaryColor
Gets or sets the primary tint applied to the detail prototype.
- receiveShadow
Gets or sets whether Polaris detail prototypes receive shadows.
- renderMode
Gets or sets how the detail is rendered by the target terrain system.
- secondaryColor
Gets or sets the secondary tint used by terrain systems that support color variation.
- texture
Gets or sets the main texture used by grass-style detail modes.
- textureVariants
Gets or sets additional texture variants for grass-style details.
Methods
- IsValid()
Tests whether the template has the minimum required source asset for its current render mode.
- Reset()
Restores the template to Vista's default detail settings.