Value Type: Difference between revisions

From Resonite Wiki
m Fix redirect
Tag: Redirect target changed
TODO: finish this, but this information being here is better than a redirect
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Category:Type:Value]]
A '''Value Type''' is a delegation of types within the [[FrooxEngine]] [[Data Model]] and [[ProtoFlux]]. In contrast to [[Reference Types]], fields containing a value type store the value directly, rather than a reference to the value.
 
For a list of all value types in game, refer to [[Category:Value Types]]
 
== In FrooxEngine ==
It's simple to tell whether a certain type is a value type or not within FrooxEngine. In the [[Scene Inspector]], fields holding a value type are easily identifiable by the ability to directly edit the value within them, rather than needing to drag in a reference to the type. A [[Component:ValueField|ValueField]] component is able to hold any value type, which can be used as a quick reference to tell what is what.
 
== In ProtoFlux ==
Things get a bit trickier in ProtoFlux, as value types are contrasted with [[Object Types]], which are more generally defined than reference types.

Revision as of 02:32, 20 August 2024

A Value Type is a delegation of types within the FrooxEngine Data Model and ProtoFlux. In contrast to Reference Types, fields containing a value type store the value directly, rather than a reference to the value.

For a list of all value types in game, refer to

In FrooxEngine

It's simple to tell whether a certain type is a value type or not within FrooxEngine. In the Scene Inspector, fields holding a value type are easily identifiable by the ability to directly edit the value within them, rather than needing to drag in a reference to the type. A ValueField component is able to hold any value type, which can be used as a quick reference to tell what is what.

In ProtoFlux

Things get a bit trickier in ProtoFlux, as value types are contrasted with Object Types, which are more generally defined than reference types.