NodeWorld

FluxFieldValue

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public sealed class FluxFieldValue

Namespace NodeWorld.SDK.Shared.

The value of one public field of a FL# script, as the scene sets it before Awake. An array field (isArray) keeps its elements in the array of its kind (boolValues, intValues...), all of the same kind.

Fields

name

csharp
public string name

The field's name, as in the script.

kind

csharp
public FluxFieldKind kind

The kind of value.

boolValue

csharp
public bool boolValue

The value of a Bool field.

intValue

csharp
public long intValue

The value of an Int field.

floatValue

csharp
public double floatValue

The value of a Float field.

stringValue

csharp
public string stringValue

The value of a String field.

vectorValue

csharp
public Vector4 vectorValue

The value of a Vector field (x, y, z, w).

objectValue

csharp
public UnityEngine.Object objectValue

The value of an Object field.

isArray

csharp
public bool isArray

The field is an array: its elements are in the array of its kind.

boolValues

csharp
public bool[] boolValues

The elements of a Bool array field.

intValues

csharp
public long[] intValues

The elements of an Int array field.

floatValues

csharp
public double[] floatValues

The elements of a Float array field.

stringValues

csharp
public string[] stringValues

The elements of a String array field.

vectorValues

csharp
public Vector4[] vectorValues

The elements of a Vector array field.

objectValues

csharp
public UnityEngine.Object[] objectValues

The elements of an Object array field.

Properties

Length

csharp
public int Length { get; }

Number of elements of an array field.

Methods

Element

csharp
public FluxFieldValue Element(int index)

Element index of an array field as a single value (for converting it).

ArrayOf

csharp
public static FluxFieldValue ArrayOf(string name, FluxFieldKind kind)

An empty array field of this kind.

Objects

csharp
public static FluxFieldValue Objects(string name, UnityEngine.Object[] values)

An Object array field with these elements.

Bool

csharp
public static FluxFieldValue Bool(string name, bool value)

A Bool field with this value.

Int

csharp
public static FluxFieldValue Int(string name, long value)

An Int field with this value.

Float

csharp
public static FluxFieldValue Float(string name, double value)

A Float field with this value.

Text

csharp
public static FluxFieldValue Text(string name, string value)

A String field with this value (null becomes empty).

Vector

csharp
public static FluxFieldValue Vector(string name, Vector4 value)

A Vector field with this value.

Reference

csharp
public static FluxFieldValue Reference(string name, UnityEngine.Object value)

An Object field with this value.