ArticyRefGetObjectTObject Method

Gets the the referenced object and tries to cast it into the given type

Definition

Namespace: Articy.Unity
Assembly: ArticyRuntime (in ArticyRuntime.dll) Version: 1.3.0
C#
public TObject GetObject<TObject>()
where TObject : ArticyObject

Type Parameters

TObject
The target type of the model.

Return Value

TObject
The referenced object of the given type or null if the object isn't found or the cast failed.

See Also