Table of Contents

Class GGrassPrototypeGroup

Namespace
Pinwheel.Griffin
Assembly
Pinwheel.Polaris.Runtime.dll

An asset type contains a collection of prototype for grass rendering. Create a new one in the editor with context menu, or in runtime with ScriptableObject.Create Assign to a terrain at runtime with terrain.TerrainData.Foliage.Grasses

[CreateAssetMenu(fileName = "Grass Prototype Group", menuName = "Polaris/Grass Prototype Group")]
public class GGrassPrototypeGroup : ScriptableObject
Inheritance
Object
ScriptableObject
GGrassPrototypeGroup
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

IsSampleAsset

Check if this asset is provided as a sample asset in Polaris package.

Prototypes

A collection of prototype containing info for grass rendering.

Methods

Create(DetailPrototype[])

Create a new asset from Unity's terrain Detail Prototype array.

Equals(DetailPrototype[])
NotifyChanged()

Call this function to refresh grass renderer and notify other subscribers that grass prototype has changed..

Events

Changed

Subscribe to this event to get notified when any prototype has changed.