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.
Type Parameters
TThe expected object type. If the object is not this type.