CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ GetMain< T >()

T GetMain< T > ( )

Gets the main object cast to T.

This is an alias for:

var obj = asset.MainObject as T;
Template Parameters
TType derived from UnityEngine.Object.
Returns
Returns MainObject cast to T or null if main object is not of type T.
Type Constraints
T :Object