FluxSpawnedObject

csharp
public readonly struct FluxSpawnedObject

Namespace NodeWorld.SDK.Client.Flux.

A copy of a network template that lives in the room (FL# Networking.Instantiate), as the server told it.

Fields

NetworkId

csharp
public readonly string NetworkId

Its network id, unique in the room; its objects' ids start with it ("~3", "~3/0"...).

TemplateId

csharp
public readonly string TemplateId

The id of its network template (NetworkTemplate component).

SpawnerId

csharp
public readonly uint SpawnerId

The player who spawned it, 0 for the server's scripts.

RequestId

csharp
public readonly uint RequestId

The spawner's request id (Spawn), so that the spawner finds its own copy.

OwnerId

csharp
public readonly uint OwnerId

Its owner now.

Position

csharp
public readonly Vector3 Position

Where it stands (where it was spawned, or its last synced transform).

Rotation

csharp
public readonly Quaternion Rotation

Its rotation.

Constructors

FluxSpawnedObject

csharp
public FluxSpawnedObject(string networkId, string templateId, uint spawnerId, uint requestId, uint ownerId, Vector3 position, Quaternion rotation)

A copy as the server told it.