Difference between revisions of "User:Dante/Types"

From Neos Wiki
Jump to navigation Jump to search
(Created page with " == Types == {|class=wikitable |Color | Type | Description |- | style="background-color:#4d4b46" | |Bool | Bool holds a true/false value |- | style="background-color:#fffeff...")
 
 
Line 71: Line 71:
 
| A 32-bit integer ranging 0 to 4,294,967,295
 
| A 32-bit integer ranging 0 to 4,294,967,295
 
|-
 
|-
 +
| style="background-color:#87798d" |
 +
|User
 +
| Holds a reference to a user
 
|}
 
|}
 +
 
== Variations ==
 
== Variations ==
  

Latest revision as of 16:56, 1 December 2019

Types

Color Type Description
Bool Bool holds a true/false value
BoundingBox ...
Byte An 8-bit integer ranging from 0 to 255
Char A single text character
Color Holds an RGBA color value
DateTime ..
Decimal ...
Double ...
Float A floating point value
Int A single 32-bit integer value with range -2,147,483,648 to 2,147,483,647
Long Similar to int, but 64-bit with range -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Sbyte A singed byte ranging -128 to 127
Short A 16-bit integer ranging -32,768 to 32,767
Slot This type contains a reference to an object in the world hierarchy
String An array of chars
UInt A 32-bit integer ranging 0 to 4,294,967,295
User Holds a reference to a user

Variations

Some types have variations of themselves. For example in addition to the Float type there is also Float2, Float3 and Float4. These contain multiple of the base type. For example where a 3 dimensional vector is expected as input a Float3 is used to pass 3 floating point values representing x, y and z. The Pack and Unpack nodes found in Operators can be used to convert supported types between these variations and their base types. For example the "Pack xyz" node has 3 Float inputs and 1 Float3 output.

An example of the Pack xyz node converting 3 Floats into a Float3