Method ToNwObjectSafe
ToNwObjectSafe<T>(Guid)
Attempts to resolve a living active game object from the specified UUID.
public static T? ToNwObjectSafe<T>(this Guid objectId) where T : NwObject
Parameters
objectIdGuidThe UUID of the object.
Returns
- T
The game object with the given UUID and the specified type, otherwise returns null if the resolved object is not of type
T.
Type Parameters
TThe expected object type.