Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Resource< T >() [1/2]

static T Sisus.Init.Find.Resource< T > ( string path)
static

Loads the asset of type T stored at path in a Resources folder.

Template Parameters
TType of the asset to load.

Assets match the search criteria if their class is of type T , if their class derives from a base class of type T , or their class implements an interface of type T .

Only objects whose classes derive from Component or ScriptableObject or objects that are wrapped by a IWrapper<T> can be returned.

Parameters
pathPath to the target resource to load.
Returns
Loaded T instance, if found; otherwise, null.