Added a link. |
m close unclosed paren |
||
Line 23: | Line 23: | ||
== Notes == | == Notes == | ||
Enums may have multiple different names for the same value (example: [[Type:SessionAccessLevel|SessionAccessLevel]] | Enums may have multiple different names for the same value (example: [[Type:SessionAccessLevel|SessionAccessLevel]]) | ||
== See Also == | == See Also == |
Latest revision as of 19:20, 4 November 2024
Enums (Enumerated Types) are Value Types which define a list of named constants. These constants names are mapped by the Enum underlying numerical value. For example a simple Enum might be the days of the week:
Name | Value | Description |
---|---|---|
Monday
|
0 | The first day of the week. |
Tuesday
|
1 | The second day of the week. |
Wednesday
|
2 | The third day of the week. |
Thursday
|
3 | The fourth day of the week. |
Friday
|
4 | The fifth day of the week. |
Saturday
|
5 | The sixth day of the week. |
Sunday
|
6 | The seventh day of the week. |
Enums are commonly used in Resonite to select between different sets of behavior on Components or in ProtoFlux. In an Inspector they are shown by their name, with the ability to switch between the possible values.
Examples
In the Tween Node, there is an input called CurvePreset which defines the type of Curve a Tween operation follows. By altering this Enum, you can change usually how smooth a Tween operation is.
In ProtoFlux
ProtoFlux has nodes for working with enum values, such as converting between names and numeric values.
Notes
Enums may have multiple different names for the same value (example: SessionAccessLevel)
See Also
- Components With Nested Enums for enums that are a nested type of a Component.
- Enumeration types (C# reference)
Pages in category "Enums"
The following 157 pages are in this category, out of 157 total.
A
C
- Type:CameraClearMode
- Type:CameraPositioningMode
- Type:CharacterControllerParameter
- Type:CloudProfile
- Type:CloudVariableChangeMode
- Type:ColliderType
- Type:ColorProfileRequirement
- Type:ComponentHandling
- Type:CompoundZeroHandling
- Type:Culling
- Type:Chirality
- Type:ColorMask
- Type:ColorProfile
- Type:CurvePreset
D
F
H
L
M
P
- Type:PanoramicProjection
- Type:ParticleAlignment
- Type:ParticleAnimationType
- Type:ParticleTrailMode
- Type:ParticleTrailTextureMode
- Type:PBR TextureFormat
- Type:PermissionState
- Type:PermissionViolationAction
- Type:PhotoEncodeFormat
- Type:PhysicsScalingMode
- Type:Platform
- Type:PointerType
- Type:PointProjection
- Type:PositionType
- Type:PrimaryLocomotionController
- Type:Primitive
- Type:Priority
- Type:ProgressStage
- Type:PropertyState
- Type:PlaybackAction
S
- Type:SampleRateMode
- Type:SaveType
- Type:ScreenshotType
- Type:SensationClass
- Type:SessionAccessLevel
- Type:Shading
- Type:ShadowCascadeMode
- Type:ShadowCastMode
- Type:ShadowResolutionMode
- Type:ShadowType
- Type:SidewaysMovementMode
- Type:SimulationType
- Type:SizeFit
- Type:SkinWeightMode
- Type:StaticCameraType
- Type:SteamChannel
- Type:SteamCloseReason
- Type:StereoLayout
- Type:StringComparison
- Type:ShoulderRotationMode
- Type:SkinnedBounds
- Type:StencilComparison
- Type:StencilOperation