Anvil
Loading...
Searching...
No Matches
Anvil.API.NwObject Class Referenceabstract
+ Inheritance diagram for Anvil.API.NwObject:

Static Public Member Functions

static IEnumerable< T > FindObjectsOfType< T > ()
 Locates all objects of the specified type.
 
static IEnumerable< NwObjectFindObjectsWithTag (params string[] tags)
 Locates all objects of that have the specified tag.
 
static IEnumerable< T > FindObjectsWithTag< T > (params string[] tags)
 Locates all objects of the specified type that have the specified tag.
 

Member Function Documentation

◆ FindObjectsOfType< T >()

static IEnumerable< T > Anvil.API.NwObject.FindObjectsOfType< T > ( )
inlinestatic

Locates all objects of the specified type.

Template Parameters
TThe type of objects to search.
Returns
An enumeration containing all objects of the specified type.
Type Constraints
T :NwObject 

◆ FindObjectsWithTag()

static IEnumerable< NwObject > Anvil.API.NwObject.FindObjectsWithTag ( params string[] tags)
inlinestatic

Locates all objects of that have the specified tag.

Parameters
tagsThe tag/s of the objects to locate.
Returns
An enumeration containing all objects with the specified tags.

◆ FindObjectsWithTag< T >()

static IEnumerable< T > Anvil.API.NwObject.FindObjectsWithTag< T > ( params string[] tags)
inlinestatic

Locates all objects of the specified type that have the specified tag.

Parameters
tagsThe tag/s of the objects to locate.
Template Parameters
TThe type of objects to search.
Returns
An enumeration containing all objects with the specified tags.
Type Constraints
T :NwObject 

The documentation for this class was generated from the following file: