unity-atoms/docs/api/unityatoms.mobile.md

294 lines
6.6 KiB
Markdown
Raw Permalink Normal View History

2019-10-15 03:07:22 +02:00
---
id: unityatoms.mobile
title: UnityAtoms.Mobile
hide_title: true
sidebar_label: UnityAtoms.Mobile
---
# Namespace - `UnityAtoms.Mobile`
2020-03-02 20:12:38 +01:00
## `TouchUserInputPairEventReferenceListener`
2020-03-21 23:03:14 +01:00
Event Reference Listener of type `TouchUserInputPair`. Inherits from `AtomEventReferenceListener<TouchUserInputPair, TouchUserInputPairEvent, TouchUserInputPairEventReference, TouchUserInputPairUnityEvent>`.
2020-03-02 20:12:38 +01:00
---
## `TouchUserInputEventReferenceListener`
2020-03-21 23:03:14 +01:00
Event Reference Listener of type `TouchUserInput`. Inherits from `AtomEventReferenceListener<TouchUserInput, TouchUserInputEvent, TouchUserInputEventReference, TouchUserInputUnityEvent>`.
2020-03-02 20:12:38 +01:00
---
2019-10-15 03:07:22 +02:00
## `TouchUserInput`
Module class holding data for touch user input.
### Variables
#### `InputState`
Current input state.
---
#### `InputPos`
Current input position.
---
#### `InputPosLastFrame`
Input position last frame.
---
#### `InputPosLastDown`
Input position last time the user pressed down.
### Properties
#### `InputWorldPos`
The input position in world space.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `InputWorldPosLastFrame`
The input position in world space from last frame.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `InputWorldPosLastDown`
Input position last time the user pressed down in world space.
### Methods
#### `#ctor(UnityAtoms.Mobile.TouchUserInput.State,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2)`
Create a `TouchUserInput` class.
##### Parameters
- `inputState` - Initial input state.
- `inputPos` - Initial input position.
- `inputPosLastFrame` - Initial input position last frame.
- `inputPosLastDown` - Initial input position last time the user pressed down.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `Equals(UnityAtoms.Mobile.TouchUserInput)`
Determine if 2 `TouchUserInput` are equal.
##### Parameters
- `other` - The other `TouchUserInput` to compare with.
##### Returns
`true` if equal, otherwise `false`.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `Equals(System.Object)`
Determine if 2 `TouchUserInput` are equal comparing against another `object`.
##### Parameters
- `obj` - The other `object` to compare with.
##### Returns
`true` if equal, otherwise `false`.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `GetHashCode`
`GetHashCode()` in order to implement `IEquatable<TouchUserInput>`
##### Returns
An unique hashcode for the current value.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `op_Equality(UnityAtoms.Mobile.TouchUserInput,UnityAtoms.Mobile.TouchUserInput)`
Equality operator
##### Parameters
- `touch1` - First `TouchUserInput`.
- `touch2` - Other `TouchUserInput`.
##### Returns
`true` if equal, otherwise `false`.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
#### `op_Inequality(UnityAtoms.Mobile.TouchUserInput,UnityAtoms.Mobile.TouchUserInput)`
Inequality operator
##### Parameters
- `touch1` - First `TouchUserInput`.
- `touch2` - Other `TouchUserInput`.
##### Returns
`true` if they are not equal, otherwise `false`.
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
## `TouchUserInput.State`
Enum for different touch user input states.
---
2019-10-15 19:19:44 +02:00
2020-01-23 23:42:09 +01:00
## `TouchUserInputReference`
2020-03-21 23:03:14 +01:00
Reference of type `TouchUserInput`. Inherits from `EquatableAtomReference<TouchUserInput, TouchUserInputPair, TouchUserInputConstant, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer, AtomCollection, AtomList>`.
2020-03-02 20:12:38 +01:00
---
## `TouchUserInputPair`
IPair of type `<TouchUserInput>`. Inherits from `IPair<TouchUserInput>`.
---
## `TouchUserInputPairUnityEvent`
None generic Unity Event of type `TouchUserInputPair`. Inherits from `UnityEvent<TouchUserInputPair>`.
2019-10-15 03:07:22 +02:00
---
2019-10-15 19:19:44 +02:00
2019-10-15 03:07:22 +02:00
## `TouchUserInputUnityEvent`
2019-10-15 22:21:56 +02:00
None generic Unity Event of type `TouchUserInput`. Inherits from `UnityEvent<TouchUserInput>`.
2019-10-15 03:07:22 +02:00
---
2019-10-15 19:19:44 +02:00
2020-01-23 23:42:09 +01:00
## `TouchUserInputTouchUserInputUnityEvent`
None generic Unity Event x 2 of type `TouchUserInput`. Inherits from `UnityEvent<TouchUserInput, TouchUserInput>`.
---
## `TouchUserInputConstant`
Constant of type `TouchUserInput`. Inherits from `AtomBaseVariable<TouchUserInput>`.
---
2020-02-24 00:59:35 +01:00
## `TouchUserInputEventReference`
2020-03-02 20:12:38 +01:00
Event Reference of type `TouchUserInput`. Inherits from `AtomEventReference<TouchUserInput, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputVariableInstancer, TouchUserInputEventInstancer>`.
2020-02-24 00:59:35 +01:00
---
2020-03-02 20:12:38 +01:00
## `TouchUserInputPairEventReference`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
Event Reference of type `TouchUserInputPair`. Inherits from `AtomEventReference<TouchUserInputPair, TouchUserInputVariable, TouchUserInputPairEvent, TouchUserInputVariableInstancer, TouchUserInputPairEventInstancer>`.
2020-02-24 00:59:35 +01:00
---
## `TouchUserInputVariableInstancer`
2020-03-02 20:12:38 +01:00
Variable Instancer of type `TouchUserInput`. Inherits from `AtomVariableInstancer<TouchUserInputVariable, TouchUserInputPair, TouchUserInput, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputTouchUserInputFunction>`.
---
## `TouchUserInputPairEventInstancer`
Event Instancer of type `TouchUserInputPair`. Inherits from `AtomEventInstancer<TouchUserInputPair, TouchUserInputPairEvent>`.
---
## `TouchUserInputEventInstancer`
Event Instancer of type `TouchUserInput`. Inherits from `AtomEventInstancer<TouchUserInput, TouchUserInputEvent>`.
2020-02-24 00:59:35 +01:00
---
2019-10-15 03:07:22 +02:00
## `TouchUserInputVariable`
2020-03-02 20:12:38 +01:00
Variable of type `TouchUserInput`. Inherits from `EquatableAtomVariable<TouchUserInput, TouchUserInputPair, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputTouchUserInputFunction>`.
2019-10-15 03:07:22 +02:00
---
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
## `TouchUserInputPairAction`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Action of type `TouchUserInputPair`. Inherits from `AtomAction<TouchUserInputPair>`.
2020-01-23 23:42:09 +01:00
---
## `UpdateTouchUserInput`
Updates the `TouchUserInputVariable` on every Update tick. Meant to be called every Update.
### Variables
#### `TouchUserInputVariable`
The `TouchUserInputVariable` to update.
### Methods
#### `Do`
Update the `TouchUserInputVariable`.abstract Call this on every Update tick.
---
## `TouchUserInputAction`
Action of type `TouchUserInput`. Inherits from `AtomAction<TouchUserInput>`.
---
2020-02-24 00:59:35 +01:00
## `TouchUserInputTouchUserInputFunction`
Function x 2 of type `TouchUserInput`. Inherits from `AtomFunction<TouchUserInput, TouchUserInput>`.
---
2020-03-21 23:03:14 +01:00
## `SyncTouchUserInputVariableInstancerToCollection`
Adds Variable Instancer's Variable of type TouchUserInput to a Collection or List on OnEnable and removes it on OnDestroy.
---
2020-03-02 20:12:38 +01:00
## `TouchUserInputPairEvent`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Event of type `TouchUserInputPair`. Inherits from `AtomEvent<TouchUserInputPair>`.
2020-01-23 23:42:09 +01:00
---
## `TouchUserInputEvent`
Event of type `TouchUserInput`. Inherits from `AtomEvent<TouchUserInput>`.
---
2020-02-24 00:59:35 +01:00
## `TouchUserInputValueList`
Value List of type `TouchUserInput`. Inherits from `AtomValueList<TouchUserInput, TouchUserInputEvent>`.
2020-01-23 23:42:09 +01:00
---
## `SetTouchUserInputVariableValue`
2020-03-02 20:12:38 +01:00
Set variable value Action of type `TouchUserInput`. Inherits from `SetVariableValue<TouchUserInput, TouchUserInputPair, TouchUserInputVariable, TouchUserInputConstant, TouchUserInputReference, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputVariableInstancer>`.
2020-01-23 23:42:09 +01:00
---