SemanticType
enum SemanticType : Enum<SemanticType>
Enum class representing different semantic types for pointer events.
These identify the intention of the event. For example: "Select" indicates a user attempted to select this entity. "Grab" indicates the user attempted to grab this entity. "Scroll" is sent when a user scrolls using an alternate method like thumb-stick.
| Name | Summary |
|---|
| UnknownSmantic type was unspecified. |
| NoneNo emantic type was set for this interaction. |
| SelectThis entity was selected (e.g. a mouse left click-down). |
| GrabThis entity was grabbed (e.g. user is holding the grip button. |
| ScrollThis entity should be scrolled (e.g. user pressed thumbstick up on a panel. |
| Name | Summary |
|---|
id | val id: Int |
name | val name: String |
ordinal | val ordinal: Int |
| Name | Summary |
|---|
valueOf | fun valueOf(value: String): SemanticType
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
values | fun values(): Array<SemanticType>
Returns an array containing the constants of this enum type, in the order they’re declared. |