Category:Enums: Difference between revisions

Category page
m Remove node in protoflux links.
get rid of Type
Line 13: Line 13:
In Resonite you will mostly come across Enums when you are dealing with certain ProtoFlux nodes or Components which have sets of predefined behavior which can be altered or changed by changing a value of an Enum.  
In Resonite you will mostly come across Enums when you are dealing with certain ProtoFlux nodes or Components which have sets of predefined behavior which can be altered or changed by changing a value of an Enum.  


For example, In the [[Tween (ProtoFlux)|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.
For example, In the [[Tween (ProtoFlux)|Tween Node]], there is an input called [[Type:CurvePreset|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.


[[Category:Types]]
[[Category:Type]]




Line 21: Line 21:
TODO:  
TODO:  


* [[Types:Blend|Blend]]
* [[Type:Blend|Blend]]
* [[Types:BlendMode|BlendMode]]
* [[Type:BlendMode|BlendMode]]
* [[Types:CameraClearMode|CameraClearMode]]
* [[Type:CameraClearMode|CameraClearMode]]
* [[Types:CameraPositioningMode|CameraPositioningMode]]
* [[Type:CameraPositioningMode|CameraPositioningMode]]
* [[Types:Clear|Clear]]
* [[Type:Clear|Clear]]
* [[Types:Culling|Culling]]
* [[Type:Culling|Culling]]
* [[Types:HeadOutputDevice|HeadOutputDevice]]
* [[Type:HeadOutputDevice|HeadOutputDevice]]
* [[Types:HttpStatusCode|HttpStatusCode]]
* [[Type:HttpStatusCode|HttpStatusCode]]
* [[Types:Key|Key]]
* [[Type:Key|Key]]
* [[Types:LightType|LightType]]
* [[Type:LightType|LightType]]
* [[Types:SessionAccountLevel|SessionAccountLevel]]
* [[Type:SessionAccountLevel|SessionAccountLevel]]
* [[Types:ShadowCastMode|ShadowCastMode]]
* [[Type:ShadowCastMode|ShadowCastMode]]
* [[Types:TimeSlicingMode|TimeSlicingMode]]
* [[Type:TimeSlicingMode|TimeSlicingMode]]
* [[Types:Type|Type]]
* [[Type:Type|Type]]
* [[Types:ZWrite|ZWrite]]
* [[Type:ZWrite|ZWrite]]
* [[Types:ZTest|ZTest]]
* [[Type:ZTest|ZTest]]
-->
-->

Revision as of 04:30, 15 January 2024

Enums(Enumerated Types) are Value Types which define a list of constants. These constants are mapped inside an Enum to an underlying numerical value. For example a simple Enum might be the days of the week:

  • Monday - 0
  • Tuesday - 1
  • Wednesday - 2
  • Thursday - 3
  • Friday - 4
  • Saturday - 5
  • Sunday - 6

Enums are useful when you want a defined set of behavior for a system to follow or when you want two components of a system to speak a common language.

In Resonite you will mostly come across Enums when you are dealing with certain ProtoFlux nodes or Components which have sets of predefined behavior which can be altered or changed by changing a value of an Enum.

For example, 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.


Pages in category "Enums"

The following 157 pages are in this category, out of 157 total.