Table of Contents

Class ObjectTemplate

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll
[CreateAssetMenu(menuName = "Vista/Object Template")]
[HelpURL("https://docs.google.com/document/d/1zRDVjqaGY2kh4VXFut91oiyVCUex0OV5lTUzzCSwxcY/edit#heading=h.gk1w93mws9z")]
public class ObjectTemplate : ScriptableObject
Inheritance
Object
ScriptableObject
ObjectTemplate
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.name
Object.hideFlags

Properties

alignToNormal

Gets or sets whether spawned instances should be rotated toward the terrain normal.

normalAlignmentError

Gets or sets how much random deviation is allowed when aligning spawned objects to the terrain normal.

prefab

Gets or sets the primary prefab spawned for this object template.

prefabVariants

Gets or sets additional prefab variants that may be selected when spawning instances.

Methods

IsValid()

Tests whether the template has the minimum data required for object population.

Reset()

Restores the template to the default object-spawning configuration.