FluxBehaviour

csharp
public sealed class FluxBehaviour : MonoBehaviour

Namespace NodeWorld.SDK.Shared.

A FL# script of the world on this GameObject: the class (Namespace.Name of a FluxScript of the world), the values of its public fields, and the network id of the object when its scripts synchronize it (Networking.SyncTransform, ownership). The scripts themselves run in the FL# module of the world (fluxc + wamrc), not in Unity.

Properties

ScriptClass

csharp
public string ScriptClass { get; }

The class of the script: Namespace.Name of a FluxScript of the world.

ObjectId

csharp
public string ObjectId { get; }

Network id of the object (unique in the world), empty if it is not synchronized.

Fields

csharp
public IReadOnlyList<FluxFieldValue> Fields { get; }

The values of the script's public fields, set before Awake.

Methods

Configure

csharp
public void Configure(string scriptClass, string objectId, IEnumerable<FluxFieldValue> fields)

Sets the class, network id and fields (editor tools that build the scene).