ArticyDatabaseGetObjectTObject Method (String) |
Gets an object by its technical name and returning it in the specified type.
Namespace:
Articy.Unity
Assembly:
ArticyRuntime (in ArticyRuntime.dll) Version: 1.0.3
Syntax public static TObject GetObject<TObject>(
string aTechnicalName
)
where TObject : ArticyObject
Parameters
- aTechnicalName
- Type: SystemString
The technical name of the object in question.
Type Parameters
- TObject
- The desired target type of the object.
Return Value
Type:
TObjecthe found object with the given
aTechnicalName or
null if the name doesn't exist in the database or the owning package is not loaded.
Remarks Examples
Character manfred1 = ArticyDatabase.GetObject<Character>("Chr_Manfred");
See Also