ArticyDatabaseGetObjectTObject Method (String, UInt32) |
Gets an object by its technical name and instance id 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,
uint aInstanceId
)
where TObject : ArticyObject
Parameters
- aTechnicalName
- Type: SystemString
The technical name of the object in question. - aInstanceId
- Type: SystemUInt32
The instance id of the object, use 0 for the base database object.
Type Parameters
- TObject
- The desired target type of the object.
Return Value
Type:
TObjectThe 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 clonedManfred1 = ArticyDatabase.GetObject<Character>("Chr_Manfred", 2);
See Also