FluxFieldValue
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
public sealed class FluxFieldValueNamespace 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
public string nameThe field's name, as in the script.
kind
public FluxFieldKind kindThe kind of value.
boolValue
public bool boolValueThe value of a Bool field.
intValue
public long intValueThe value of an Int field.
floatValue
public double floatValueThe value of a Float field.
stringValue
public string stringValueThe value of a String field.
vectorValue
public Vector4 vectorValueThe value of a Vector field (x, y, z, w).
objectValue
public UnityEngine.Object objectValueThe value of an Object field.
isArray
public bool isArrayThe field is an array: its elements are in the array of its kind.
boolValues
public bool[] boolValuesThe elements of a Bool array field.
intValues
public long[] intValuesThe elements of an Int array field.
floatValues
public double[] floatValuesThe elements of a Float array field.
stringValues
public string[] stringValuesThe elements of a String array field.
vectorValues
public Vector4[] vectorValuesThe elements of a Vector array field.
objectValues
public UnityEngine.Object[] objectValuesThe elements of an Object array field.
Properties
Length
public int Length { get; }Number of elements of an array field.
Methods
Element
public FluxFieldValue Element(int index)Element index of an array field as a single value (for converting it).
ArrayOf
public static FluxFieldValue ArrayOf(string name, FluxFieldKind kind)An empty array field of this kind.
Objects
public static FluxFieldValue Objects(string name, UnityEngine.Object[] values)An Object array field with these elements.
Bool
public static FluxFieldValue Bool(string name, bool value)A Bool field with this value.
Int
public static FluxFieldValue Int(string name, long value)An Int field with this value.
Float
public static FluxFieldValue Float(string name, double value)A Float field with this value.
Text
public static FluxFieldValue Text(string name, string value)A String field with this value (null becomes empty).
Vector
public static FluxFieldValue Vector(string name, Vector4 value)A Vector field with this value.
Reference
public static FluxFieldValue Reference(string name, UnityEngine.Object value)An Object field with this value.
