Table of Contents

Method IsValid

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

IsValid()

Tests whether the template has the minimum required source asset for its current render mode.

public bool IsValid()

Returns

bool

true when grass-style modes have a non-null texture, or when UnityEngine.DetailRenderMode.VertexLit has a non-null prefab; otherwise, false.

Remarks

This validation only checks the primary asset used to construct prototypes. Variant entries are optional and are ignored when null.