2019-10-15 02:08:41 +02:00
---
id: unityatoms
title: UnityAtoms
hide_title: true
sidebar_label: UnityAtoms
---
# Namespace - `UnityAtoms`
2019-10-15 19:19:44 +02:00
## `IMGUIUtils`
Utility methods for IMGUI.
### Methods
#### `SnipRectH(UnityEngine.Rect,System.Single)`
Snip a `Rect` horizontally.
##### Parameters
- `rect` - The rect.
- `range` - The range.
##### Returns
A new `Rect` snipped horizontally.
---
#### `SnipRectH(UnityEngine.Rect,System.Single,UnityEngine.Rect@,System.Single)`
Snip a `Rect` horizontally.
##### Parameters
- `rect` - The rect.
- `range` - The range.
- `rest` - Rest rect.
- `gutter` - Gutter
##### Returns
A new `Rect` snipped horizontally.
---
#### `SnipRectV(UnityEngine.Rect,System.Single)`
Snip a `Rect` vertically.
##### Parameters
- `rect` - The rect.
- `range` - The range.
##### Returns
A new `Rect` snipped vertically.
---
#### `SnipRectV(UnityEngine.Rect,System.Single,UnityEngine.Rect@,System.Single)`
Snip a `Rect` vertically.
##### Parameters
- `rect` - The rect.
- `range` - The range.
- `rest` - Rest rect.
- `gutter` - Gutter
##### Returns
A new `Rect` snipped vertically.
---
2020-02-24 00:59:35 +01:00
## `StringReferenceAtomBaseVariableDictionary`
2019-10-15 19:19:44 +02:00
2020-02-24 00:59:35 +01:00
A SerializableDictionary of type StringReference and AtomBaseVariable. Used by AtomCollection.
2019-10-15 19:19:44 +02:00
2020-01-23 23:42:09 +01:00
### Methods
2020-02-24 00:59:35 +01:00
#### `Get<T>(System.String)`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Generic getter.
2019-10-15 19:19:44 +02:00
#### Type Parameters
2020-02-24 00:59:35 +01:00
- `T` - The expected type of the value you want to retrieve.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `key` - The key associated with the value you want to retrieve.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The value of type T if found, otherwise null.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Get<T>(UnityAtoms.AtomBaseVariable{System.String})`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Generic getter.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The expected type of the value you want to retrieve.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `key` - The key associated with the value you want to retrieve.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The value of type T if found, otherwise null.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Add(System.String,UnityAtoms.AtomBaseVariable)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Add value and its associated key to the dictionary.
2019-10-15 20:44:25 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `key` - The key associated with the value.
- `value` - The value to add.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Add(UnityAtoms.AtomBaseVariable{System.String},UnityAtoms.AtomBaseVariable)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Add value and its associated key to the dictionary.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `key` - The key associated with the value.
- `value` - The value to add.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Remove(System.String)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Remove item by key from the collection.
2019-10-15 20:44:25 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `key` - The key that you want to remove.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
True if it removed a value from the collection, otherwise false.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Remove(UnityAtoms.AtomBaseVariable{System.String})`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Remove item by key from the collection.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `key` - The key that you want to remove.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
True if it removed a value from the collection, otherwise false.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `SerializableDictionary<K,V>`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `K` - Key type.
- `V` - Value type.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
A Serializable dictionary used by AtomCollection.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `_duplicateKeyIndices`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Needed in order to keep track of duplicate keys in the dictionary.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `AtomCollection`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
A Collection / Dictionary of Atom Variables (AtomBaseVariable).
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Added`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event for when and item is added to the collection.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Removed`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Event for when and item is removed from the collection.
2019-10-15 22:23:46 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Cleared`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Event for when the collection is cleared.
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 22:27:22 +02:00
2020-01-23 23:42:09 +01:00
#### `ObserveAdd`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Make the add event into an `IObservable<T>` . Makes Collection's add Event compatible with for example UniRx.
2019-10-15 22:26:14 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 22:26:14 +02:00
2020-01-23 23:42:09 +01:00
The add Event as an `IObservable<T>` .
2019-10-15 22:26:14 +02:00
---
2020-01-23 23:42:09 +01:00
#### `ObserveRemove`
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
Make the remove event into an `IObservable<T>` . Makes Collection's remove Event compatible with for example UniRx.
2019-10-15 22:24:44 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 22:24:44 +02:00
2020-01-23 23:42:09 +01:00
The remove Event as an `IObservable<T>` .
2019-10-15 22:24:44 +02:00
---
2020-01-23 23:42:09 +01:00
#### `ObserveClear`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
Make the clear event into an `IObservable<Void>` . Makes Collection's clear Event compatible with for example UniRx.
2019-10-15 22:29:05 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 22:29:05 +02:00
2020-01-23 23:42:09 +01:00
The clear Event as an `IObservable<Void>` .
2019-10-15 22:29:05 +02:00
---
2020-02-24 00:59:35 +01:00
## `Void`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Dummy module class used for representing nothing in for example empty Events, eg: `AtomEvent<Void>`
2019-10-15 22:30:18 +02:00
---
2020-02-24 00:59:35 +01:00
## `FloatReference`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `float` . Inherits from `EquatableAtomReference<float, FloatConstant, FloatVariable, FloatEvent, FloatFloatEvent, FloatFloatFunction, FloatVariableInstancer>` .
2019-10-15 22:30:18 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector2Reference`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `Vector2` . Inherits from `EquatableAtomReference<Vector2, Vector2Constant, Vector2Variable, Vector2Event, Vector2Vector2Event, Vector2Vector2Function, Vector2VariableInstancer>` .
2019-10-15 22:32:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `BoolReference`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `bool` . Inherits from `EquatableAtomReference<bool, BoolConstant, BoolVariable, BoolEvent, BoolBoolEvent, BoolBoolFunction, BoolVariableInstancer>` .
2019-10-15 22:32:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColorReference`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `Color` . Inherits from `EquatableAtomReference<Color, ColorConstant, ColorVariable, ColorEvent, ColorColorEvent, ColorColorFunction, ColorVariableInstancer>` .
2019-10-15 22:33:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColliderReference`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `Collider` . Inherits from `AtomReference<Collider, ColliderConstant, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer>` .
2019-10-15 22:33:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `IntReference`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `int` . Inherits from `EquatableAtomReference<int, IntConstant, IntVariable, IntEvent, IntIntEvent, IntIntFunction, IntVariableInstancer>` .
2019-10-15 22:34:08 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomReferenceBase`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
None generic base class for `AtomReference<T, C, V, E1, E2, F, VI>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
#### `_usage`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Descries how we use the Reference and where the value comes from.
2019-10-15 22:34:48 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomReferenceBase.Usage`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Enum for how to use the Reference.
2019-10-15 22:34:48 +02:00
---
2020-01-23 23:42:09 +01:00
## `Collider2DReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `Collider2D` . Inherits from `AtomReference<Collider2D, Collider2DConstant, Collider2DVariable, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction, Collider2DVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `GameObjectReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `GameObject` . Inherits from `AtomReference<GameObject, GameObjectConstant, GameObjectVariable, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction, GameObjectVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `Vector3Reference`
2020-02-24 00:59:35 +01:00
Reference of type `Vector3` . Inherits from `EquatableAtomReference<Vector3, Vector3Constant, Vector3Variable, Vector3Event, Vector3Vector3Event, Vector3Vector3Function, Vector3VariableInstancer>` .
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomReference<T,C,V,E1,E2,F,VI>`
#### Type Parameters
- `T` - The type of the variable.
- `C` - Constant of type T.
- `V` - Variable of type T.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T.
- `VI` - Variable Instancer of type T.
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
A Reference lets you define a variable in your script where you then from the inspector can choose if it's going to be taking the value from a Constant, Variable, Value or a Variable Instancer.
2020-01-23 23:42:09 +01:00
### Variables
2020-02-24 00:59:35 +01:00
#### `_value`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Value used if `Usage` is set to `Value` .
2019-10-15 22:23:46 +02:00
---
2020-02-24 00:59:35 +01:00
#### `_constant`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Constant used if `Usage` is set to `Constant` .
---
#### `_variable`
Variable used if `Usage` is set to `Variable` .
---
#### `_variableInstancer`
Variable Instancer used if `Usage` is set to `VariableInstancer` .
### Properties
#### `Value`
Get or set the value for the Reference.
2019-10-15 22:27:22 +02:00
---
2020-01-23 23:42:09 +01:00
## `StringReference`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Reference of type `string` . Inherits from `EquatableAtomReference<string, StringConstant, StringVariable, StringEvent, StringStringEvent, StringStringFunction, StringVariableInstancer>` .
2019-10-15 22:26:14 +02:00
---
2020-01-23 23:42:09 +01:00
## `GameObjectUnityEvent`
2019-10-15 22:24:44 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `GameObject` . Inherits from `UnityEvent<GameObject>` .
2019-10-15 22:24:44 +02:00
---
2020-01-23 23:42:09 +01:00
## `Collider2DUnityEvent`
2019-10-15 22:29:05 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `Collider2D` . Inherits from `UnityEvent<Collider2D>` .
2019-10-15 22:29:05 +02:00
---
2020-01-23 23:42:09 +01:00
## `ColliderColliderUnityEvent`
2019-10-15 22:30:18 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `Collider` . Inherits from `UnityEvent<Collider, Collider>` .
2019-10-15 22:30:18 +02:00
---
2020-01-23 23:42:09 +01:00
## `ColliderUnityEvent`
2019-10-15 22:32:06 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `Collider` . Inherits from `UnityEvent<Collider>` .
2019-10-15 22:32:06 +02:00
---
2020-01-23 23:42:09 +01:00
## `BoolUnityEvent`
2019-10-15 22:33:06 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `bool` . Inherits from `UnityEvent<bool>` .
2019-10-15 22:33:06 +02:00
---
2020-01-23 23:42:09 +01:00
## `Collider2DCollider2DUnityEvent`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `Collider2D` . Inherits from `UnityEvent<Collider2D, Collider2D>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `FloatFloatUnityEvent`
None generic Unity Event x 2 of type `float` . Inherits from `UnityEvent<float, float>` .
2019-10-15 20:44:25 +02:00
---
2020-01-23 23:42:09 +01:00
## `Vector2UnityEvent`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `Vector2` . Inherits from `UnityEvent<Vector2>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `FloatUnityEvent`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `float` . Inherits from `UnityEvent<float>` .
2019-10-15 20:44:25 +02:00
2019-10-15 19:19:44 +02:00
---
2020-01-23 23:42:09 +01:00
## `StringStringUnityEvent`
2019-10-15 22:34:08 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `string` . Inherits from `UnityEvent<string, string>` .
2019-10-15 22:34:08 +02:00
---
2020-01-23 23:42:09 +01:00
## `IntUnityEvent`
2019-10-15 22:34:48 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `int` . Inherits from `UnityEvent<int>` .
2019-10-15 22:34:48 +02:00
---
2020-01-23 23:42:09 +01:00
## `Vector3UnityEvent`
2019-10-15 02:08:41 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `Vector3` . Inherits from `UnityEvent<Vector3>` .
2019-10-15 02:08:41 +02:00
---
2019-10-15 19:19:44 +02:00
2020-01-23 23:42:09 +01:00
## `ColorUnityEvent`
2019-10-15 02:08:41 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `Color` . Inherits from `UnityEvent<Color>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `AtomBaseVariableUnityEvent`
None generic Unity Event of type `AtomBaseVariable` . Inherits from `UnityEvent<AtomBaseVariable>` .
---
2020-01-23 23:42:09 +01:00
## `StringUnityEvent`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event of type `string` . Inherits from `UnityEvent<string>` .
2019-10-15 20:44:25 +02:00
---
2020-01-23 23:42:09 +01:00
## `Vector2Vector2UnityEvent`
2019-10-15 22:23:46 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `Vector2` . Inherits from `UnityEvent<Vector2, Vector2>` .
2019-10-15 22:23:46 +02:00
---
2020-01-23 23:42:09 +01:00
## `IntIntUnityEvent`
2019-10-15 22:27:22 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `int` . Inherits from `UnityEvent<int, int>` .
2019-10-15 22:27:22 +02:00
---
2020-01-23 23:42:09 +01:00
## `ColorColorUnityEvent`
2019-10-15 22:26:14 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `Color` . Inherits from `UnityEvent<Color, Color>` .
2019-10-15 22:26:14 +02:00
---
2020-01-23 23:42:09 +01:00
## `Vector3Vector3UnityEvent`
2019-10-15 22:24:44 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `Vector3` . Inherits from `UnityEvent<Vector3, Vector3>` .
2019-10-15 22:24:44 +02:00
---
2020-01-23 23:42:09 +01:00
## `GameObjectGameObjectUnityEvent`
2019-10-15 22:29:05 +02:00
2020-01-23 23:42:09 +01:00
None generic Unity Event x 2 of type `GameObject` . Inherits from `UnityEvent<GameObject, GameObject>` .
---
## `BoolBoolUnityEvent`
None generic Unity Event x 2 of type `bool` . Inherits from `UnityEvent<bool, bool>` .
2019-10-15 22:29:05 +02:00
---
2019-10-15 22:30:18 +02:00
## `GameObjectConstant`
Constant of type `GameObject` . Inherits from `AtomBaseVariable<GameObject>` .
---
2020-01-23 23:42:09 +01:00
## `Collider2DConstant`
2019-10-15 22:32:06 +02:00
2020-01-23 23:42:09 +01:00
Constant of type `Collider2D` . Inherits from `AtomBaseVariable<Collider2D>` .
2019-10-15 22:32:06 +02:00
---
2020-01-23 23:42:09 +01:00
## `BoolConstant`
2019-10-15 22:33:06 +02:00
2020-01-23 23:42:09 +01:00
Constant of type `bool` . Inherits from `AtomBaseVariable<bool>` .
2019-10-15 22:33:06 +02:00
---
2019-10-15 22:34:08 +02:00
## `Vector2Constant`
Constant of type `Vector2` . Inherits from `AtomBaseVariable<Vector2>` .
---
2020-01-23 23:42:09 +01:00
## `ColliderConstant`
2019-10-15 22:34:48 +02:00
2020-01-23 23:42:09 +01:00
Constant of type `Collider` . Inherits from `AtomBaseVariable<Collider>` .
2019-10-15 22:34:48 +02:00
---
2020-01-23 23:42:09 +01:00
## `IntConstant`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
Constant of type `int` . Inherits from `AtomBaseVariable<int>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `FloatConstant`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
Constant of type `float` . Inherits from `AtomBaseVariable<float>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `StringConstant`
Constant of type `string` . Inherits from `AtomBaseVariable<string>` .
2019-10-15 20:44:25 +02:00
---
2020-01-23 23:42:09 +01:00
## `ColorConstant`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
Constant of type `Color` . Inherits from `AtomBaseVariable<Color>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
## `Vector3Constant`
Constant of type `Vector3` . Inherits from `AtomBaseVariable<Vector3>` .
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `StringEventReference`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Event Reference of type `string` . Inherits from `AtomEventReference<string, StringVariable, StringEvent, StringStringEvent, StringStringFunction, StringVariableInstancer>` .
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
## `AtomEventX2Reference<T,V,E1,E2,F,VI>`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
- `T` - The type of the event.
- `V` - Variable of type T.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T.
- `VI` - Variable Instancer of type T.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
An Event x 2 Reference lets you define an event in your script where you then from the inspector can choose if it's going to use the Event from an Event x 2, Variable or a Variable Instancer.
2019-11-28 19:35:59 +01:00
2020-01-23 23:42:09 +01:00
### Variables
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
#### `_event`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Event used if `Usage` is set to `Event` .
2019-11-28 19:35:59 +01:00
---
2020-02-24 00:59:35 +01:00
#### `_variable`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable used if `Usage` is set to `Variable` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `_variableInstancer`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer used if `Usage` is set to `VariableInstancer` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Event`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Get or set the event for the Event Reference.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `GameObjectGameObjectEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `GameObject` . Inherits from `AtomEventX2Reference<GameObject, GameObjectVariable, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction, GameObjectVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `IntIntEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `int` . Inherits from `AtomEventX2Reference<int, IntVariable, IntEvent, IntIntEvent, IntIntFunction, IntVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `IntEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `int` . Inherits from `AtomEventReference<int, IntVariable, IntEvent, IntIntEvent, IntIntFunction, IntVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `ColorColorEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `Color` . Inherits from `AtomEventX2Reference<Color, ColorVariable, ColorEvent, ColorColorEvent, ColorColorFunction, ColorVariableInstancer>` .
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector2Vector2EventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `Vector2` . Inherits from `AtomEventX2Reference<Vector2, Vector2Variable, Vector2Event, Vector2Vector2Event, Vector2Vector2Function, Vector2VariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `ColliderEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `Collider` . Inherits from `AtomEventReference<Collider, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `BoolEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `bool` . Inherits from `AtomEventReference<bool, BoolVariable, BoolEvent, BoolBoolEvent, BoolBoolFunction, BoolVariableInstancer>` .
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `GameObjectEventReference`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Event Reference of type `GameObject` . Inherits from `AtomEventReference<GameObject, GameObjectVariable, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction, GameObjectVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `BoolBoolEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `bool` . Inherits from `AtomEventX2Reference<bool, BoolVariable, BoolEvent, BoolBoolEvent, BoolBoolFunction, BoolVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `ColliderColliderEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `Collider` . Inherits from `AtomEventX2Reference<Collider, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2EventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `Vector2` . Inherits from `AtomEventReference<Vector2, Vector2Variable, Vector2Event, Vector2Vector2Event, Vector2Vector2Function, Vector2VariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `FloatFloatEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `float` . Inherits from `AtomEventX2Reference<float, FloatVariable, FloatEvent, FloatFloatEvent, FloatFloatFunction, FloatVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `Vector3Vector3EventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `Vector3` . Inherits from `AtomEventX2Reference<Vector3, Vector3Variable, Vector3Event, Vector3Vector3Event, Vector3Vector3Function, Vector3VariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `Collider2DEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `Collider2D` . Inherits from `AtomEventReference<Collider2D, Collider2DVariable, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction, Collider2DVariableInstancer>` .
---
## `AtomEventReference<T,V,E1,E2,F,VI>`
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The type of the event.
- `V` - Variable of type T.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T.
- `VI` - Variable Instancer of type T.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
An Event Reference lets you define an event in your script where you then from the inspector can choose if it's going to use the Event from an Event, Variable or a Variable Instancer.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `_event`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Event used if `Usage` is set to `Event` .
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `_variable`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable used if `Usage` is set to `Variable` .
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `_variableInstancer`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer used if `Usage` is set to `VariableInstancer` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `Event`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Get or set the event for the Event Reference.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector3EventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `Vector3` . Inherits from `AtomEventReference<Vector3, Vector3Variable, Vector3Event, Vector3Vector3Event, Vector3Vector3Function, Vector3VariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `FloatEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `float` . Inherits from `AtomEventReference<float, FloatVariable, FloatEvent, FloatFloatEvent, FloatFloatFunction, FloatVariableInstancer>` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `Collider2DCollider2DEventReference`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `Collider2D` . Inherits from `AtomEventX2Reference<Collider2D, Collider2DVariable, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction, Collider2DVariableInstancer>` .
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomEventReferenceBase`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
None generic base class for `AtomEventReference<...>` .
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
#### `_usage`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Descries how we use the Event Reference.
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
## `AtomEventReferenceBase.Usage`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Enum for how to use the Event Reference.
2019-10-15 22:27:22 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColorEventReference`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Event Reference of type `Color` . Inherits from `AtomEventReference<Color, ColorVariable, ColorEvent, ColorColorEvent, ColorColorFunction, ColorVariableInstancer>` .
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
## `StringStringEventReference`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 Reference of type `string` . Inherits from `AtomEventX2Reference<string, StringVariable, StringEvent, StringStringEvent, StringStringFunction, StringVariableInstancer>` .
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2VariableInstancer`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `Vector2` . Inherits from `AtomVariableInstancer<Vector2Variable, Vector2, Vector2Event, Vector2Vector2Event, Vector2Vector2Function>` .
2019-10-15 22:26:14 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomVariableInstancer<V,T,E1,E2,F>`
2019-10-15 22:24:44 +02:00
2020-01-23 23:42:09 +01:00
#### Type Parameters
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
- `V` - Variable of type T.
- `T` - The value type.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
A Variable Instancer is a MonoBehaviour that takes a variable as a base and creates an in memory copy of it OnEnable. This is handy when you want to use atoms for prefabs that are instantiated at runtime. Use together with AtomCollection to react accordingly when a prefab with an assoicated atom is added or deleted to the scene.
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
#### `_base`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
The variable that the in memory copy will be based on when created at runtime.
2019-10-15 22:29:05 +02:00
---
2020-02-24 00:59:35 +01:00
#### `_syncToCollection`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
If assigned the in memory copy variable will be added to the collection on Start using the gameObject's instance id as key. The value will also be removed from the collection OnDestroy.
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
#### `_syncToList`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
If assigned the in memory copy variable will be added to the list on Start. The value will also be removed from the list OnDestroy.
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
#### `Variable`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Getter for retrieving the in memory runtime variable.
2019-10-15 22:30:18 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Value`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Getter for retrieving the value of the in memory runtime variable.
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
## `Vector3VariableInstancer`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `Vector3` . Inherits from `AtomVariableInstancer<Vector3Variable, Vector3, Vector3Event, Vector3Vector3Event, Vector3Vector3Function>` .
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
## `FloatVariableInstancer`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `float` . Inherits from `AtomVariableInstancer<FloatVariable, float, FloatEvent, FloatFloatEvent, FloatFloatFunction>` .
2019-10-15 22:33:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `BoolVariableInstancer`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `bool` . Inherits from `AtomVariableInstancer<BoolVariable, bool, BoolEvent, BoolBoolEvent, BoolBoolFunction>` .
2019-10-15 22:33:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `Collider2DVariableInstancer`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `Collider2D` . Inherits from `AtomVariableInstancer<Collider2DVariable, Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
## `GameObjectVariableInstancer`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `GameObject` . Inherits from `AtomVariableInstancer<GameObjectVariable, GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
## `ColorVariableInstancer`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `Color` . Inherits from `AtomVariableInstancer<ColorVariable, Color, ColorEvent, ColorColorEvent, ColorColorFunction>` .
2019-10-15 22:34:48 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColliderVariableInstancer`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `Collider` . Inherits from `AtomVariableInstancer<ColliderVariable, Collider, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction>` .
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
## `IntVariableInstancer`
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
Variable Instancer of type `int` . Inherits from `AtomVariableInstancer<IntVariable, int, IntEvent, IntIntEvent, IntIntFunction>` .
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
## `StringVariableInstancer`
Variable Instancer of type `string` . Inherits from `AtomVariableInstancer<StringVariable, string, StringEvent, StringStringEvent, StringStringFunction>` .
2019-10-15 22:37:15 +02:00
---
2020-02-24 00:59:35 +01:00
## `Runtime`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Internal constant and static readonly members for runtime usage.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `IsUnityAtomsRepo`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Determine if we are working the Unity Atoms source library / repo or not.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `Runtime.Constants`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Runtime constants
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Variables
#### `LOG_PREFIX`
Prefix that should be pre-pended to all Debug.Logs made from UnityAtoms to help immediately inform a user that those logs are made from this library.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2020-02-24 00:59:35 +01:00
## `DynamicAtoms`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Static helper class for when creating Atoms a runtime (yes it is indeed possible 🤯).
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateVariable<T,V,E1,E2,F>(initialValue,changed,changedWithHistory,preChangeTransformers)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create a Variable at runtime.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The Variable value type.
- `V` - The Variable type AtomVariable< T , E1 , E2 > `.
- `E1` - The type of the `changed` Event of type `AtomEvent<T>` .
- `E2` - The type of the `changedWithHistory` Event of type `AtomEvent<T, T>` .
- `F` - The type of the `preChangeTransformers` Functions of type `AtomFunction<T, T>` .
2019-10-15 20:44:25 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `initialValue` - Inital value of the Variable created.
- `changed` - Changed Event of type `E1` .
- `changedWithHistory` - Changed with history Event of type `E2` .
- `preChangeTransformers` - List of pre change transformers of the type `List<F>` .
2019-10-15 20:44:25 +02:00
##### Returns
2020-02-24 00:59:35 +01:00
The Variable created.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `CreateList<T,L,E>(added,removed,cleared)`
Create a List at runtime.
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The list item type.
- `L` - The List type to create of type `AtomList<T, E>` .
- `E` - The Event tyoe used for `removed` and `added` of type `AtomEvent<T>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `added` - Added Event of type `E` .
- `removed` - Removed Event of type `E` .
- `cleared` - Cleared Event of type `Void` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The List created.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateAction<A,T1>(action)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create an Action at runtime.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `A` - The Action created of type `AtomAction<T>` .
- `T1` - The type of the first parameter of the Action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
The Action created
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `CreateAction<A,T1,T2>(action)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create an Action at runtime.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `A` - The Action created of type `AtomAction<T1, T2>` .
- `T1` - The type of the first parameter of the Action.
- `T2` - The type of the second parameter of the Action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The action.
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
##### Returns
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
The Action created
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `CreateAction<A,T1,T2,T3>(action)`
Create an Action at runtime.
2019-10-15 20:44:25 +02:00
#### Type Parameters
2020-02-24 00:59:35 +01:00
- `A` - The Action created of type `AtomAction<T1, T2, T3>` .
- `T1` - The type of the first parameter of the Action.
- `T2` - The type of the second parameter of the Action.
- `T3` - The type of the third parameter of the Action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Action created
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateAction<A,T1,T2,T3,T4>(action)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create an Action at runtime.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `A` - The Action created of type `AtomAction<T1, T2, T3, T4>` .
- `T1` - The type of the first parameter of the Action.
- `T2` - The type of the second parameter of the Action.
- `T3` - The type of the third parameter of the Action.
- `T4` - The type of the fourth parameter of the Action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Action created
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateAction<A,T1,T2,T3,T4,T5>(action)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create an Action at runtime.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `A` - The Action created of type `AtomAction<T1, T2, T3, T4, T5>` .
- `T1` - The type of the first parameter of the Action.
- `T2` - The type of the second parameter of the Action.
- `T3` - The type of the third parameter of the Action.
- `T4` - The type of the fourth parameter of the Action.
- `T5` - The type of the fifth parameter of the Action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The action.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Action created
---
#### `CreateFunction<F,R>(func)`
Create a Function at runtime.
#### Type Parameters
- `F` - The Function created of type `AtomFunction<R>` .
- `R` - The return type.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `func` - The function.
##### Returns
The Function crated.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateFunction<F,R,T1>(func)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create a Function at runtime.
#### Type Parameters
- `F` - The Function created of type `AtomFunction<R, T1>` .
- `R` - The return type.
- `T1` - The type of the first parameter of the Function.
2019-10-15 20:44:25 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `func` - The function.
2019-10-15 20:44:25 +02:00
##### Returns
2020-02-24 00:59:35 +01:00
The Function crated.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `CreateFunction<F,R,T1,T2>(func)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create a Function at runtime.
#### Type Parameters
- `F` - The Function created of type `AtomFunction<R, T1, T2>` .
- `R` - The return type.
- `T1` - The type of the first parameter of the Function.
- `T2` - The type of the second parameter of the Function.
2019-10-15 20:44:25 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `func` - The function.
2019-10-15 20:44:25 +02:00
##### Returns
2020-02-24 00:59:35 +01:00
The Function crated.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
#### `CreateFunction<F,R,T1,T2,T3>(func)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create a Function at runtime.
#### Type Parameters
- `F` - The Function created of type `AtomFunction<R, T1, T2, T3>` .
- `R` - The return type.
- `T1` - The type of the first parameter of the Function.
- `T2` - The type of the second parameter of the Function.
- `T3` - The type of the third parameter of the Function.
##### Parameters
- `func` - The function.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Function crated.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateFunction<F,R,T1,T2,T3,T4>(func)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create a Function at runtime.
#### Type Parameters
- `F` - The Function created of type `AtomFunction<R, T1, T2, T3, T4>` .
- `R` - The return type.
- `T1` - The type of the first parameter of the Function.
- `T2` - The type of the second parameter of the Function.
- `T3` - The type of the third parameter of the Function.
- `T4` - The type of the fourth parameter of the Function.
##### Parameters
- `func` - The function.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Function crated.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `CreateFunction<F,R,T1,T2,T3,T4,T5>(func)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Create a Function at runtime.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `F` - The Function created of type `AtomFunction<R, T1, T2, T3, T4, T5>` .
- `R` - The return type.
- `T1` - The type of the first parameter of the Function.
- `T2` - The type of the second parameter of the Function.
- `T3` - The type of the third parameter of the Function.
- `T4` - The type of the fourth parameter of the Function.
- `T5` - The type of the fifth parameter of the Function.
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
- `func` - The function.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Function crated.
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `BoolVariable`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable of type `bool` . Inherits from `EquatableAtomVariable<bool, BoolEvent, BoolBoolEvent, BoolBoolFunction>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
---
2020-02-24 00:59:35 +01:00
## `AtomBaseVariable`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
None generic base class for Variables. Inherits from `BaseAtom` .
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
### Properties
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `BaseValue`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
The Variable value as an `object` .abstract Beware of boxing! 🥊
2020-01-23 23:42:09 +01:00
### Methods
2020-02-24 00:59:35 +01:00
#### `Reset(System.Boolean)`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Abstract method that could be implemented to reset the Variable value.
2019-10-15 20:44:25 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomBaseVariable<T>`
2019-10-15 20:44:25 +02:00
#### Type Parameters
2020-02-24 00:59:35 +01:00
- `T` - The Variable value type.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Generic base class for Variables. Inherits from `AtomBaseVariable` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `BaseValue`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
The Variable value as an `object` .abstract Beware of boxing! 🥊
---
#### `Value`
The Variable value as a property.
2019-10-15 20:44:25 +02:00
### Methods
2020-02-24 00:59:35 +01:00
#### `Equals(other)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Determines equality between Variables.
2019-10-15 20:44:25 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `other` - The other Variable to compare.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
`true` if they are equal, otherwise `false` .
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
#### `Reset(System.Boolean)`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Not implemented.abstract Throws Exception
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2Variable`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable of type `Vector2` . Inherits from `EquatableAtomVariable<Vector2, Vector2Event, Vector2Vector2Event, Vector2Vector2Function>` .
2019-10-15 20:44:25 +02:00
2020-01-23 23:42:09 +01:00
### Methods
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
#### `MultiplyBy(System.Single)`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Multiply variable by value.
2019-11-28 19:35:59 +01:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
- `value` - Value to multiple by.
2019-11-28 19:35:59 +01:00
---
2020-02-24 00:59:35 +01:00
#### `MultiplyBy(UnityAtoms.AtomBaseVariable{System.Single})`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Multiply variable by Variable value.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
- `variable` - Variable with value to multiple by.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
---
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
#### `DivideBy(System.Single)`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Divide Variable by value.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
- `value` - Value to divide by.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `DivideBy(UnityAtoms.AtomBaseVariable{System.Single})`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Divide Variable by Variable value.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
- `variable` - Variable value to divide by.
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
## `ColliderVariable`
2019-10-15 20:44:25 +02:00
2020-02-24 00:59:35 +01:00
Variable of type `Collider` . Inherits from `AtomVariable<Collider, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction>` .
2019-10-15 02:08:41 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
## `IntVariable`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
Variable of type `int` . Inherits from `EquatableAtomVariable<int, IntEvent, IntIntEvent, IntIntFunction>` .
2019-10-15 21:21:23 +02:00
2020-01-23 23:42:09 +01:00
### Methods
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
#### `Add(System.Int32)`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
Add value to Variable.
2020-01-23 23:42:09 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `value` - Value to add.
2019-10-15 21:21:23 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Add(UnityAtoms.AtomBaseVariable{System.Int32})`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
Add variable value to Variable.
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
- `variable` - Variable with value to add.
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `Subtract(System.Int32)`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Subtract value from Variable.
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
- `value` - Value to subtract.
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
---
#### `Subtract(UnityAtoms.AtomBaseVariable{System.Int32})`
Subtract variable value from Variable.
2019-10-15 21:21:23 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `variable` - Variable with value to subtract.
2019-10-15 21:21:23 +02:00
---
2020-02-24 00:59:35 +01:00
#### `MultiplyBy(System.Int32)`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Multiply variable by value.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
- `value` - Value to multiple by.
---
#### `MultiplyBy(UnityAtoms.AtomBaseVariable{System.Int32})`
Multiply variable by Variable value.
##### Parameters
- `variable` - Variable with value to multiple by.
---
#### `DivideBy(System.Int32)`
Divide Variable by value.
##### Parameters
- `value` - Value to divide by.
---
#### `DivideBy(UnityAtoms.AtomBaseVariable{System.Int32})`
Divide Variable by Variable value.
##### Parameters
- `variable` - Variable value to divide by.
---
## `FloatVariable`
Variable of type `float` . Inherits from `EquatableAtomVariable<float, FloatEvent, FloatFloatEvent, FloatFloatFunction>` .
### Methods
#### `Add(System.Single)`
Add value to Variable.
##### Parameters
- `value` - Value to add.
---
#### `Add(UnityAtoms.AtomBaseVariable{System.Single})`
Add variable value to Variable.
##### Parameters
- `variable` - Variable with value to add.
---
#### `Subtract(System.Single)`
Subtract value from Variable.
##### Parameters
- `value` - Value to subtract.
---
#### `Subtract(UnityAtoms.AtomBaseVariable{System.Single})`
Subtract variable value from Variable.
##### Parameters
- `variable` - Variable with value to subtract.
---
#### `MultiplyBy(System.Single)`
Multiply variable by value.
##### Parameters
- `value` - Value to multiple by.
---
#### `MultiplyBy(UnityAtoms.AtomBaseVariable{System.Single})`
Multiply variable by Variable value.
##### Parameters
- `variable` - Variable with value to multiple by.
---
#### `DivideBy(System.Single)`
Divide Variable by value.
##### Parameters
- `value` - Value to divide by.
---
#### `DivideBy(UnityAtoms.AtomBaseVariable{System.Single})`
Divide Variable by Variable value.
##### Parameters
- `variable` - Variable value to divide by.
---
## `StringVariable`
Variable of type `string` . Inherits from `EquatableAtomVariable<string, StringEvent, StringStringEvent, StringStringFunction>` .
---
## `AtomVariable<T,E1,E2,F>`
#### Type Parameters
- `T` - The Variable value type.
- `E1` - Event of type `AtomEvent<T>` .
- `E2` - Event of type `AtomEvent<T, T>` .
- `F` - Function of type `FunctionEvent<T, T>` .
Generic base class for Variables. Inherits from `AtomBaseVariable<T>` .
### Variables
#### `_initialValue`
The inital value of the Variable.
---
#### `Changed`
Changed Event triggered when the Variable value gets changed.
---
#### `ChangedWithHistory`
Changed with history Event triggered when the Variable value gets changed.
### Properties
#### `Value`
The Variable value as a property.
---
#### `InitialValue`
The inital Variable value as a property.
---
#### `OldValue`
The value the Variable had before its value got changed last time.
---
#### `PreChangeTransformers`
When setting the value of a Variable the new value will be piped through all the pre change transformers, which allows you to create custom logic and restriction on for example what values can be set for this Variable.
### Methods
#### `Reset(System.Boolean)`
Reset the Variable to its `_initalValue` .
##### Parameters
- `shouldTriggerEvents` - Set to `true` if Events should be triggered on reset, otherwise `false` .
---
#### `SetValue(newValue)`
Set the Variable value.
##### Parameters
- `newValue` - The new value to set.
##### Returns
`true` if the value got changed, otherwise `false` .
---
#### `SetValue(variable)`
Set the Variable value.
##### Parameters
- `variable` - The value to set provided from another Variable.
##### Returns
`true` if the value got changed, otherwise `false` .
---
#### `ObserveChange`
Turn the Variable's change Event into an `IObservable<T>` . Makes the Variable's change Event compatible with for example UniRx.
##### Returns
The Variable's change Event as an `IObservable<T>` .
---
#### `ObserveChangeWithHistory`
Turn the Variable's change with history Event into an `IObservable<T, T>` . Makes the Variable's change with history Event compatible with for example UniRx.
##### Returns
The Variable's change Event as an `IObservable<T, T>` .
---
## `GameObjectVariable`
Variable of type `GameObject` . Inherits from `AtomVariable<GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction>` .
---
## `Collider2DVariable`
Variable of type `Collider2D` . Inherits from `AtomVariable<Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction>` .
---
## `ColorVariable`
Variable of type `Color` . Inherits from `EquatableAtomVariable<Color, ColorEvent, ColorColorEvent, ColorColorFunction>` .
### Methods
#### `SetAlpha(System.Single)`
Set Alpha of Color by value.
##### Parameters
- `value` - New alpha value.
---
#### `SetAlpha(UnityAtoms.AtomBaseVariable{System.Single})`
Set Alpha of Color by Variable value.
##### Parameters
- `variable` - New alpha Variable value.
---
## `Vector3Variable`
Variable of type `Vector3` . Inherits from `EquatableAtomVariable<Vector3, Vector3Event, Vector3Vector3Event, Vector3Vector3Function>` .
### Methods
#### `MultiplyBy(System.Single)`
Multiply variable by value.
##### Parameters
- `value` - Value to multiple by.
---
#### `MultiplyBy(UnityAtoms.AtomBaseVariable{System.Single})`
Multiply variable by Variable value.
##### Parameters
- `variable` - Variable with value to multiple by.
---
#### `DivideBy(System.Single)`
Divide Variable by value.
##### Parameters
- `value` - Value to divide by.
---
#### `DivideBy(UnityAtoms.AtomBaseVariable{System.Single})`
Divide Variable by Variable value.
##### Parameters
- `variable` - Variable value to divide by.
---
## `AtomList`
A List of Atom Variables (AtomBaseVariable).
### Properties
#### `Added`
Event for when and item is added to the list.
---
#### `Removed`
Event for when and item is removed from the list.
---
#### `Cleared`
Event for when the list is cleared.
### Methods
#### `ObserveAdd`
Make the add event into an `IObservable<T>` . Makes List's add Event compatible with for example UniRx.
##### Returns
The add Event as an `IObservable<T>` .
---
#### `ObserveRemove`
Make the remove event into an `IObservable<T>` . Makes List's remove Event compatible with for example UniRx.
##### Returns
The remove Event as an `IObservable<T>` .
---
#### `ObserveClear`
Make the clear event into an `IObservable<Void>` . Makes List's clear Event compatible with for example UniRx.
##### Returns
The clear Event as an `IObservable<Void>` .
---
## `AtomBaseVariableList`
A List of type AtomBaseVariable. Used by AtomList.
### Methods
#### `Get<T>(System.Int32)`
Generic getter.
#### Type Parameters
- `T` - The expected type of the value you want to retrieve.
##### Parameters
- `index` - The index you want to retrieve.
##### Returns
The value of type T at specified index.
---
#### `Get<T>(UnityAtoms.AtomBaseVariable{System.Int32})`
Generic getter.
#### Type Parameters
- `T` - The expected type of the value you want to retrieve.
##### Parameters
- `index` - The index you want to retrieve.
##### Returns
The value of type T at specified index.
---
#### `Add(UnityAtoms.AtomBaseVariable)`
Add an item to the list.
##### Parameters
- `item` - The item to add.
---
#### `Remove(UnityAtoms.AtomBaseVariable)`
Remove an item from the list.
##### Parameters
- `item` - The item to remove.
##### Returns
True if it was removed, otherwise false..
---
#### `RemoveAt(System.Int32)`
Remove an item at provided index.
##### Parameters
- `index` - The index to remove item at.
---
#### `Insert(System.Int32,UnityAtoms.AtomBaseVariable)`
Insert item at index.
##### Parameters
- `index` - Index to insert item at.
- `item` - Item to insert.
---
#### `Clear`
Ckear list.
---
## `AtomBaseVariableAction`
Action of type `AtomBaseVariable` . Inherits from `AtomAction<AtomBaseVariable>` .
---
## `AtomAction`
Base abstract class for Actions. Inherits from `BaseAtom` .
### Variables
#### `ActionNoValue`
The actual Action.
### Methods
#### `Do`
Perform the Action.
---
## `AtomAction<T1>`
#### Type Parameters
- `T1` - The type for this Action.
Generic abstract base class for Actions. Inherits from `AtomAction` .
### Variables
#### `Action`
The actual Action.
### Methods
#### `Do(t1)`
Perform the Action.
##### Parameters
- `t1` - The first parameter.
---
## `AtomAction<T1,T2>`
#### Type Parameters
- `T1` - The first type for this Action.
- `T2` - The second type for this Action.
Generic abstract base class for Actions. Inherits from `AtomAction` .
### Variables
#### `Action`
The actual Action.
### Methods
#### `Do(t1,t2)`
Perform the Action.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
---
## `AtomAction<T1,T2,T3>`
#### Type Parameters
- `T1` - The first type for this Action.
- `T2` - The second type for this Action.
- `T3` - The third type for this Action.
Generic abstract base class for Actions. Inherits from `AtomAction` .
### Variables
#### `Action`
The actual Action.
### Methods
#### `Do(t1,t2,t3)`
Perform the Action.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
---
## `AtomAction<T1,T2,T3,T4>`
#### Type Parameters
- `T1` - The first type for this Action.
- `T2` - The second type for this Action.
- `T3` - The third type for this Action.
- `T4` - The fourth type for this Action.
Generic abstract base class for Actions. Inherits from `AtomAction` .
### Variables
#### `Action`
The actual Action.
### Methods
#### `Do(t1,t2,t3,t4)`
Perform the Action.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
- `t4` - The fourth parameter.
---
## `AtomAction<T1,T2,T3,T4,T5>`
#### Type Parameters
- `T1` - The first type for this Action.
- `T2` - The second type for this Action.
- `T3` - The third type for this Action.
- `T4` - The fourth type for this Action.
- `T5` - The fifth type for this Action.
Generic abstract base class for Actions. Inherits from `AtomAction` .
### Variables
#### `Action`
The actual Action.
### Methods
#### `Do(t1,t2,t3,t4,t5)`
Perform the Action.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
- `t4` - The fourth parameter.
- `t5` - The fifth parameter.
---
## `StringStringAction`
Action x 2 of type `string` . Inherits from `AtomAction<string, string>` .
---
## `GameObjectAction`
Action of type `GameObject` . Inherits from `AtomAction<GameObject>` .
---
## `FloatFloatAction`
Action x 2 of type `float` . Inherits from `AtomAction<float, float>` .
---
## `Vector2Action`
Action of type `Vector2` . Inherits from `AtomAction<Vector2>` .
---
## `Vector3Action`
Action of type `Vector3` . Inherits from `AtomAction<Vector3>` .
---
## `VoidAction`
Action of type `Void` . Inherits from `AtomAction<Void>` .
### Methods
#### `Do(UnityAtoms.Void)`
Do the Action.
##### Parameters
- `_` - Dummy Void parameter.
---
## `ColorAction`
Action of type `Color` . Inherits from `AtomAction<Color>` .
---
## `IntIntAction`
Action x 2 of type `int` . Inherits from `AtomAction<int, int>` .
---
## `BoolBoolAction`
Action x 2 of type `bool` . Inherits from `AtomAction<bool, bool>` .
---
## `ColliderAction`
Action of type `Collider` . Inherits from `AtomAction<Collider>` .
---
## `StringAction`
Action of type `string` . Inherits from `AtomAction<string>` .
---
## `ColorColorAction`
Action x 2 of type `Color` . Inherits from `AtomAction<Color, Color>` .
---
## `BoolAction`
Action of type `bool` . Inherits from `AtomAction<bool>` .
---
## `Vector3Vector3Action`
Action x 2 of type `Vector3` . Inherits from `AtomAction<Vector3, Vector3>` .
---
## `IntAction`
Action of type `int` . Inherits from `AtomAction<int>` .
---
## `FloatAction`
Action of type `float` . Inherits from `AtomAction<float>` .
---
## `Collider2DCollider2DAction`
Action x 2 of type `Collider2D` . Inherits from `AtomAction<Collider2D, Collider2D>` .
---
## `Collider2DAction`
Action of type `Collider2D` . Inherits from `AtomAction<Collider2D>` .
---
## `ColliderColliderAction`
Action x 2 of type `Collider` . Inherits from `AtomAction<Collider, Collider>` .
---
## `GameObjectGameObjectAction`
Action x 2 of type `GameObject` . Inherits from `AtomAction<GameObject, GameObject>` .
---
## `Vector2Vector2Action`
Action x 2 of type `Vector2` . Inherits from `AtomAction<Vector2, Vector2>` .
---
## `FloatFloatFunction`
Function x 2 of type `float` . Inherits from `AtomFunction<float, float>` .
---
## `Vector3Vector3Function`
Function x 2 of type `Vector3` . Inherits from `AtomFunction<Vector3, Vector3>` .
---
## `AtomFunction<R>`
#### Type Parameters
- `R` - The type to return from the Function.
Generic abstract base class for Functions. Inherits from `BaseAtom` .
### Variables
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
#### `Func`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
The actual function.
### Methods
#### `Call`
Call the Function.
##### Returns
Whatever the function decides to return of type `R` .
2019-10-15 21:21:23 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
#### `SetFunc(func)`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
Set the Function providing a `Func<R>` .
##### Parameters
- `func` - The `Func<R>` to set.
##### Returns
An `AtomFunction<R>` .
2019-10-15 21:21:23 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomFunction<R,T1>`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
- `R` - The type to return from the Function.
- `T1` - The parameter type for this Function.
Generic abstract base class for Functions. Inherits from `BaseAtom` .
### Variables
#### `Func`
The actual function.
### Methods
#### `Call(t1)`
Call the Function.
##### Parameters
- `t1` - The first parameter.
##### Returns
Whatever the function decides to return of type `R` .
2019-10-15 21:21:23 +02:00
---
2020-02-24 00:59:35 +01:00
#### `SetFunc(func)`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
Set the Function providing a `Func<T1, R>` .
##### Parameters
- `func` - The `Func<T1, R>` to set.
##### Returns
An `AtomFunction<R, T1>` .
---
## `AtomFunction<R,T1,T2>`
#### Type Parameters
- `R` - The type to return from the Function.
- `T1` - The first parameter type for this Function.
- `T2` - The second parameter type for this Function.
Generic abstract base class for Functions. Inherits from `BaseAtom` .
### Variables
#### `Func`
The actual function.
### Methods
#### `Call(t1,t2)`
Call the Function.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
##### Returns
Whatever the function decides to return of type `R` .
---
#### `SetFunc(func)`
Set the Function providing a `Func<T1, T2, R>` .
##### Parameters
- `func` - The `Func<T1, T2, R>` to set.
##### Returns
An `AtomFunction<R, T1, T2>` .
---
## `AtomFunction<R,T1,T2,T3>`
#### Type Parameters
- `R` - The type to return from the Function.
- `T1` - The first parameter type for this Function.
- `T2` - The second parameter type for this Function.
- `T3` - The third parameter type for this Function.
Generic abstract base class for Functions. Inherits from `BaseAtom` .
### Variables
#### `Func`
The actual function.
### Methods
#### `Call(t1,t2,t3)`
Call the Function.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
##### Returns
Whatever the function decides to return of type `R` .
---
#### `SetFunc(func)`
Set the Function providing a `Func<T1, T2, T3, R>` .
##### Parameters
- `func` - The `Func<T1, T2, T3, R>` to set.
##### Returns
An `AtomFunction<R, T1, T2, T3>` .
---
## `AtomFunction<R,T1,T2,T3,T4>`
#### Type Parameters
- `R` - The type to return from the Function.
- `T1` - The first parameter type for this Function.
- `T2` - The second parameter type for this Function.
- `T3` - The third parameter type for this Function.
- `T4` - The fourth parameter type for this Function.
Generic abstract base class for Functions. Inherits from `BaseAtom` .
### Variables
#### `Func`
The actual function.
### Methods
#### `Call(t1,t2,t3,t4)`
Call the Function.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
- `t4` - The fourth parameter.
##### Returns
Whatever the function decides to return of type `R` .
---
#### `SetFunc(func)`
Set the Function providing a `Func<T1, T2, T3, T4 R>` .
##### Parameters
- `func` - The `Func<T1, T2, T3, T4, R>` to set.
##### Returns
An `AtomFunction<R, T1, T2, T3, T4>` .
---
## `AtomFunction<R,T1,T2,T3,T4,T5>`
#### Type Parameters
- `R` - The type to return from the Function.
- `T1` - The first parameter type for this Function.
- `T2` - The second parameter type for this Function.
- `T3` - The third parameter type for this Function.
- `T4` - The fourth parameter type for this Function.
- `T5` - The fifth parameter type for this Function.
Generic abstract base class for Functions. Inherits from `BaseAtom` .
### Variables
#### `Func`
The actual function.
### Methods
#### `Call(t1,t2,t3,t4,t5)`
Call the Function.
##### Parameters
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
- `t4` - The fourth parameter.
- `t5` - The fifth parameter.
##### Returns
Whatever the function decides to return of type `R` .
2019-10-15 21:21:23 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
#### `SetFunc(func)`
Set the Function providing a `Func<T1, T2, T3, T4, T5 R>` .
##### Parameters
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
- `func` - The `Func<T1, T2, T3, T4, T5, R>` to set.
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
An `AtomFunction<R, T1, T2, T3, T4, T5>` .
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
## `IntIntFunction`
2019-10-15 21:21:23 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `int` . Inherits from `AtomFunction<int, int>` .
2019-10-15 21:21:23 +02:00
2019-10-15 02:08:41 +02:00
---
2019-10-15 19:19:44 +02:00
2020-02-24 00:59:35 +01:00
## `BoolBoolFunction`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `bool` . Inherits from `AtomFunction<bool, bool>` .
2019-11-28 19:35:59 +01:00
---
2020-02-24 00:59:35 +01:00
## `Collider2DCollider2DFunction`
2019-10-16 19:43:05 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `Collider2D` . Inherits from `AtomFunction<Collider2D, Collider2D>` .
2019-10-16 19:43:05 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-16 19:43:05 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2Vector2Function`
2019-10-16 19:43:05 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `Vector2` . Inherits from `AtomFunction<Vector2, Vector2>` .
2019-10-16 19:43:05 +02:00
---
2020-02-24 00:59:35 +01:00
## `GameObjectGameObjectFunction`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `GameObject` . Inherits from `AtomFunction<GameObject, GameObject>` .
2019-10-15 22:23:46 +02:00
---
2020-02-24 00:59:35 +01:00
## `StringStringFunction`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `string` . Inherits from `AtomFunction<string, string>` .
2019-10-15 22:23:46 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColorColorFunction`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `Color` . Inherits from `AtomFunction<Color, Color>` .
2019-10-15 22:27:22 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColliderColliderFunction`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Function x 2 of type `Collider` . Inherits from `AtomFunction<Collider, Collider>` .
2019-10-15 22:27:22 +02:00
---
2020-02-24 00:59:35 +01:00
## `Collider2DCollider2DEvent`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `Collider2D` . Inherits from `AtomEvent<Collider2D, Collider2D>` .
2019-10-15 22:26:14 +02:00
---
2020-02-24 00:59:35 +01:00
## `BoolBoolEvent`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `bool` . Inherits from `AtomEvent<bool, bool>` .
2019-10-15 22:26:14 +02:00
---
2020-02-24 00:59:35 +01:00
## `IntIntEvent`
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `int` . Inherits from `AtomEvent<int, int>` .
2019-10-15 22:24:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `StringStringEvent`
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `string` . Inherits from `AtomEvent<string, string>` .
2019-10-15 22:24:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomEventBase`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
None generic base class for Events. Inherits from `BaseAtom` and `ISerializationCallbackReceiver` .
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
#### `Register(System.Action)`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
Register handler to be called when the Event triggers.
##### Parameters
- `del` - The handler.
2019-10-15 22:29:05 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Unregister(System.Action)`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Unregister handler that was registered using the `Register` method.
##### Parameters
- `del` - The handler.
2019-10-15 22:30:18 +02:00
---
2020-02-24 00:59:35 +01:00
#### `RegisterListener(UnityAtoms.IAtomListener)`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Register a Listener that in turn trigger all its associated handlers when the Event triggers.
##### Parameters
- `listener` - The Listener to register.
2019-10-15 22:30:18 +02:00
---
2020-02-24 00:59:35 +01:00
#### `UnregisterListener(UnityAtoms.IAtomListener)`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Unregister a listener that was registered using the `RegisterListener` method.
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
- `listener` - The Listener to unregister.
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
## `ColliderEvent`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Event of type `Collider` . Inherits from `AtomEvent<Collider>` .
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
## `ColorColorEvent`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `Color` . Inherits from `AtomEvent<Color, Color>` .
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
## `GameObjectEvent`
Event of type `GameObject` . Inherits from `AtomEvent<GameObject>` .
2019-10-15 22:33:06 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColliderColliderEvent`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `Collider` . Inherits from `AtomEvent<Collider, Collider>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2Vector2Event`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `Vector2` . Inherits from `AtomEvent<Vector2, Vector2>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
---
## `Vector3Vector3Event`
Event x 2 of type `Vector3` . Inherits from `AtomEvent<Vector3, Vector3>` .
2019-10-15 22:34:48 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomEvent<T>`
2019-10-15 22:34:48 +02:00
2020-01-23 23:42:09 +01:00
#### Type Parameters
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The type for this Event.
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
Generic base class for Events. Inherits from `AtomEventBase` .
2019-10-15 22:37:15 +02:00
2020-01-23 23:42:09 +01:00
### Variables
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `_replayBufferSize`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
The event replays the specified number of old values to new subscribers. Works like a ReplaySubject in Rx.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `_raiseValue`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Used when raising values from the inspector for debugging purposes.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `Raise(item)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Raise the Event.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
- `item` - The value associated with the Event.
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Register(action)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Register handler to be called when the Event triggers.
2019-10-15 21:39:32 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The handler.
2019-10-15 21:39:32 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `Unregister(action)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Unregister handler that was registered using the `Register` method.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The handler.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `RegisterListener(listener)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Register a Listener that in turn trigger all its associated handlers when the Event triggers.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
- `listener` - The Listener to register.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `UnregisterListener(listener)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Unregister a listener that was registered using the `RegisterListener` method.
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
- `listener` - The Listener to unregister.
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Observe`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Turn the Event into an `IObservable<T>` . Makes Events compatible with for example UniRx.
2019-10-15 21:39:32 +02:00
##### Returns
2020-02-24 00:59:35 +01:00
The Event as an `IObservable<T>` .
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomEvent<T1,T2>`
2019-10-15 21:39:32 +02:00
2020-01-23 23:42:09 +01:00
#### Type Parameters
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
- `T1` - The first type for this Event.
- `T2` - The second type for this Event.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Generic base class for Events. Inherits from `AtomEventBase` .
2019-10-15 21:39:32 +02:00
2020-01-23 23:42:09 +01:00
### Variables
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `_replayBufferSize`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
The event replays the specified number of old values to new subscribers. Works like a ReplaySubject in Rx.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `_raiseValue1`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Used when raising values from the inspector for debugging purposes.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `_raiseValue2`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Used when raising values from the inspector for debugging purposes.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `Raise(item1,item2)`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Raise the Event.
2019-11-28 19:35:59 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `item1` - The first value associated with the Event.
- `item2` - The second value associated with the Event.
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `Register(action)`
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
Register handler to be called when the Event triggers.
2019-11-28 19:35:59 +01:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The handler.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `Unregister(action)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Unregister handler that was registered using the `Register` method.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
- `action` - The handler.
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
---
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
#### `RegisterListener(listener)`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Register a Listener that in turn trigger all its associated handlers when the Event triggers.
2019-10-15 21:39:32 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `listener` - The Listener to register.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
#### `UnregisterListener(listener)`
Unregister a listener that was registered using the `RegisterListener` method.
##### Parameters
- `listener` - The Listener to unregister.
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Observe<M>(resultSelector)`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Turn the Event into an `IObservable<M>` . Makes Events compatible with for example UniRx.
#### Type Parameters
- `M` - The result selector type.
2019-10-15 21:39:32 +02:00
##### Parameters
2020-02-24 00:59:35 +01:00
- `resultSelector` - Takes `T1` and `T2` and returns a new type of type `M` .abstract Most of the time this is going to be combination of T1 and T2, eg. `ValueTuple<T1, T2>`
2020-01-23 23:42:09 +01:00
##### Returns
2020-02-24 00:59:35 +01:00
The Event as an `IObservable<M>` .
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector3Event`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `Vector3` . Inherits from `AtomEvent<Vector3>` .
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `BoolEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `bool` . Inherits from `AtomEvent<bool>` .
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `GameObjectGameObjectEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `GameObject` . Inherits from `AtomEvent<GameObject, GameObject>` .
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `StringEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `string` . Inherits from `AtomEvent<string>` .
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `AtomBaseVariableEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `AtomBaseVariable` . Inherits from `AtomEvent<AtomBaseVariable>` .
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColorEvent`
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
Event of type `Color` . Inherits from `AtomEvent<Color>` .
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `VoidEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `Void` . Inherits from `AtomEvent<Void>` .
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector2Event`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `Vector2` . Inherits from `AtomEvent<Vector2>` .
2019-10-15 21:39:32 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `FloatEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event of type `float` . Inherits from `AtomEvent<float>` .
2019-10-15 21:39:32 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
## `FloatFloatEvent`
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
Event x 2 of type `float` . Inherits from `AtomEvent<float, float>` .
2019-10-15 21:39:32 +02:00
---
2020-02-24 00:59:35 +01:00
## `Collider2DEvent`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Event of type `Collider2D` . Inherits from `AtomEvent<Collider2D>` .
2019-10-15 22:23:46 +02:00
---
2020-02-24 00:59:35 +01:00
## `IntEvent`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Event of type `int` . Inherits from `AtomEvent<int>` .
2019-10-15 22:27:22 +02:00
---
2020-02-24 00:59:35 +01:00
## `FloatFloatListener`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `float` . Inherits from `AtomX2Listener<float, FloatFloatAction, FloatVariable, FloatEvent, FloatFloatEvent, FloatFloatFunction, FloatVariableInstancer, FloatFloatEventReference, FloatFloatUnityEvent>` .
2019-10-15 22:26:14 +02:00
---
2020-02-24 00:59:35 +01:00
## `Collider2DListener`
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `Collider2D` . Inherits from `AtomListener<Collider2D, Collider2DAction, Collider2DVariable, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction, Collider2DVariableInstancer, Collider2DEventReference, Collider2DUnityEvent>` .
2019-10-15 22:24:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector3Vector3Listener`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `Vector3` . Inherits from `AtomX2Listener<Vector3, Vector3Vector3Action, Vector3Variable, Vector3Event, Vector3Vector3Event, Vector3Vector3Function, Vector3VariableInstancer, Vector3Vector3EventReference, Vector3Vector3UnityEvent>` .
2019-10-15 22:29:05 +02:00
---
2020-02-24 00:59:35 +01:00
## `GameObjectListener`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `GameObject` . Inherits from `AtomListener<GameObject, GameObjectAction, GameObjectVariable, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction, GameObjectVariableInstancer, GameObjectEventReference, GameObjectUnityEvent>` .
2019-10-15 22:30:18 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomListener<T,A,V,E1,E2,F,VI,ER,UER>`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The type that we are listening for.
- `A` - Acion of type T.
- `V` - Variable of type T.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T.
- `VI` - Variable Instancer of type T.
- `ER` - Event Reference of type T.
- `UER` - UnityEvent of type T.
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Generic base class for Listeners. Inherits from `AtomBaseListener` and implements `IAtomListener<T>` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-16 18:02:08 +02:00
2020-02-24 00:59:35 +01:00
#### `_eventReference`
2019-10-16 18:02:08 +02:00
2020-02-24 00:59:35 +01:00
The Event Reference that we are listening to.
2019-10-16 18:02:08 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-16 18:02:08 +02:00
2020-02-24 00:59:35 +01:00
#### `_unityEventResponse`
2019-10-16 18:02:08 +02:00
2020-02-24 00:59:35 +01:00
The Unity Event responses. NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
2019-10-16 18:02:08 +02:00
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
#### `_actionResponses`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
The Action responses;
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
#### `EventReference`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
The Event we are listening for as a property.
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
#### `OnEventRaised(item)`
Handler for when the Event gets raised.
2019-10-15 22:26:14 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
- `item` - The Event type.
2019-10-15 22:24:44 +02:00
---
2020-02-24 00:59:35 +01:00
#### `DebugLog(`0)`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
Helper to regiser as listener callback
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
## `StringListener`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `string` . Inherits from `AtomListener<string, StringAction, StringVariable, StringEvent, StringStringEvent, StringStringFunction, StringVariableInstancer, StringEventReference, StringUnityEvent>` .
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
## `BoolBoolListener`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `bool` . Inherits from `AtomX2Listener<bool, BoolBoolAction, BoolVariable, BoolEvent, BoolBoolEvent, BoolBoolFunction, BoolVariableInstancer, BoolBoolEventReference, BoolBoolUnityEvent>` .
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
## `FloatListener`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `float` . Inherits from `AtomListener<float, FloatAction, FloatVariable, FloatEvent, FloatFloatEvent, FloatFloatFunction, FloatVariableInstancer, FloatEventReference, FloatUnityEvent>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
## `IntIntListener`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `int` . Inherits from `AtomX2Listener<int, IntIntAction, IntVariable, IntEvent, IntIntEvent, IntIntFunction, IntVariableInstancer, IntIntEventReference, IntIntUnityEvent>` .
2019-10-15 22:34:48 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColliderListener`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `Collider` . Inherits from `AtomListener<Collider, ColliderAction, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer, ColliderEventReference, ColliderUnityEvent>` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
## `IntListener`
Listener of type `int` . Inherits from `AtomListener<int, IntAction, IntVariable, IntEvent, IntIntEvent, IntIntFunction, IntVariableInstancer, IntEventReference, IntUnityEvent>` .
2019-10-15 22:23:46 +02:00
---
2020-02-24 00:59:35 +01:00
## `Collider2DCollider2DListener`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `Collider2D` . Inherits from `AtomX2Listener<Collider2D, Collider2DCollider2DAction, Collider2DVariable, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction, Collider2DVariableInstancer, Collider2DCollider2DEventReference, Collider2DCollider2DUnityEvent>` .
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2Listener`
Listener of type `Vector2` . Inherits from `AtomListener<Vector2, Vector2Action, Vector2Variable, Vector2Event, Vector2Vector2Event, Vector2Vector2Function, Vector2VariableInstancer, Vector2EventReference, Vector2UnityEvent>` .
2019-10-15 22:27:22 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomBaseListener`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
None generic base class for all Listeners.
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
#### `_developerDescription`
A description of the Listener made for documentation purposes.
2019-10-15 22:26:14 +02:00
---
2020-02-24 00:59:35 +01:00
## `BoolListener`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `bool` . Inherits from `AtomListener<bool, BoolAction, BoolVariable, BoolEvent, BoolBoolEvent, BoolBoolFunction, BoolVariableInstancer, BoolEventReference, BoolUnityEvent>` .
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2Vector2Listener`
Listener x 2 of type `Vector2` . Inherits from `AtomX2Listener<Vector2, Vector2Vector2Action, Vector2Variable, Vector2Event, Vector2Vector2Event, Vector2Vector2Function, Vector2VariableInstancer, Vector2Vector2EventReference, Vector2Vector2UnityEvent>` .
2019-10-15 22:24:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomBaseVariableListener`
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
A listener of type `BaseAtomVariable` .
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
#### `_event`
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
The Event that we are listening to.
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
#### `_unityEventResponse`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
The Unity Event responses. NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
#### `_actionResponses`
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
The Action responses;
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 22:30:18 +02:00
2020-02-24 00:59:35 +01:00
#### `Event`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
The Event we are listening for as a property.
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
#### `OnEventRaised(UnityAtoms.AtomBaseVariable)`
2019-10-15 22:32:06 +02:00
2020-02-24 00:59:35 +01:00
Handler for when the Event gets raised.
2019-10-15 22:32:06 +02:00
2020-01-23 23:42:09 +01:00
##### Parameters
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
- `item` - The Event type.
2019-10-15 22:33:06 +02:00
---
2020-02-24 00:59:35 +01:00
#### `DebugLog(UnityAtoms.AtomBaseVariable)`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Helper to regiser as listener callback
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
## `GameObjectGameObjectListener`
Listener x 2 of type `GameObject` . Inherits from `AtomX2Listener<GameObject, GameObjectGameObjectAction, GameObjectVariable, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction, GameObjectVariableInstancer, GameObjectGameObjectEventReference, GameObjectGameObjectUnityEvent>` .
2019-10-15 22:34:08 +02:00
---
2020-02-24 00:59:35 +01:00
## `Vector3Listener`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `Vector3` . Inherits from `AtomListener<Vector3, Vector3Action, Vector3Variable, Vector3Event, Vector3Vector3Event, Vector3Vector3Function, Vector3VariableInstancer, Vector3EventReference, Vector3UnityEvent>` .
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
## `AtomX2Listener<T,A,V,E1,E2,F,VI,E2R,UER>`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
#### Type Parameters
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
- `T` - The type that we are listening for.
- `A` - Acion of type T.
- `V` - Variable of type T.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T.
- `VI` - Variable Instancer of type T.
- `E2R` - Event x 2 Reference of type T.
- `UER` - UnityEvent of type T.
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Generic base class for X2 Listeners. Inherits from `AtomBaseListener` and implements `IAtomListener<T>` .
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
#### `_eventReference`
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
The Event Reference that we are listening to.
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `_unityEventResponse`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Unity Event responses. NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `_actionResponses`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Action responses;
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `EventReference`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Event we are listening for as a property.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `OnEventRaised(first,second)`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Handler for when the Event gets raised.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
- `first` - The first Event type.
- `second` - The second Event type.
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `DebugLog(`0,`0)`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Helper to regiser as listener callback
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `StringStringListener`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `string` . Inherits from `AtomX2Listener<string, StringStringAction, StringVariable, StringEvent, StringStringEvent, StringStringFunction, StringVariableInstancer, StringStringEventReference, StringStringUnityEvent>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `ColorColorListener`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `Color` . Inherits from `AtomX2Listener<Color, ColorColorAction, ColorVariable, ColorEvent, ColorColorEvent, ColorColorFunction, ColorVariableInstancer, ColorColorEventReference, ColorColorUnityEvent>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `VoidListener`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The most basic Listener. Can use every type of AtomEvent but doesn't support its value. Inherits from `AtomBaseListener` and implements `IAtomListener` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `_event`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Event that we are listening to.
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `_unityEventResponse`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Unity Event responses. NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `_actionResponses`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Action responses;
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Properties
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `Event`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The Event we are listening for as a property.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `OnEventRaised`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Handler for when the Event gets raised.
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `ColliderColliderListener`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Listener x 2 of type `Collider` . Inherits from `AtomX2Listener<Collider, ColliderColliderAction, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer, ColliderColliderEventReference, ColliderColliderUnityEvent>` .
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `ColorListener`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Listener of type `Color` . Inherits from `AtomListener<Color, ColorAction, ColorVariable, ColorEvent, ColorColorEvent, ColorColorFunction, ColorVariableInstancer, ColorEventReference, ColorUnityEvent>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `BaseAtom`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
None generic base class for all Atoms.
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
### Variables
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
#### `_developerDescription`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
A description of the Atom made for documentation purposes.
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `FloatValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `float` . Inherits from `AtomValueList<float, FloatEvent>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `Vector2ValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `Vector2` . Inherits from `AtomValueList<Vector2, Vector2Event>` .
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `BoolValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `bool` . Inherits from `AtomValueList<bool, BoolEvent>` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `ColorValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `Color` . Inherits from `AtomValueList<Color, ColorEvent>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `ColliderValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `Collider` . Inherits from `AtomValueList<Collider, ColliderEvent>` .
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `IntValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `int` . Inherits from `AtomValueList<int, IntEvent>` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `GameObjectValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `GameObject` . Inherits from `AtomValueList<GameObject, GameObjectEvent>` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
## `Collider2DValueList`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `Collider2D` . Inherits from `AtomValueList<Collider2D, Collider2DEvent>` .
---
## `Vector3ValueList`
Value List of type `Vector3` . Inherits from `AtomValueList<Vector3, Vector3Event>` .
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
## `AtomValueList<T,E>`
2019-10-15 22:02:44 +02:00
#### Type Parameters
2020-02-24 00:59:35 +01:00
- `T` - The list item type.
2020-01-23 23:42:09 +01:00
- `E` - Event of type `AtomEvent<T>` .
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Generic base class for Lists. Inherits from `BaseAtomList` and `IList<T>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
### Variables
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `Added`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Event for when something is added to the list.
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Removed`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Event for when something is removed from the list.
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `list`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Actual `List<T>` .
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
### Properties
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `Count`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Get the count of the list.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `IsReadOnly`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Is the list read only?
2019-10-15 22:02:44 +02:00
---
2020-02-24 00:59:35 +01:00
#### `List`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
The actual `List<T>` as a property.
2019-10-15 22:02:44 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
#### `Item(System.Int32)`
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
Indexer of the list.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 02:08:41 +02:00
2020-02-24 00:59:35 +01:00
#### `Add(item)`
2019-10-15 02:08:41 +02:00
2020-02-24 00:59:35 +01:00
Add an item to the list.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
- `item` - The item to add.
2019-10-15 22:02:44 +02:00
2019-10-15 02:08:41 +02:00
---
2019-10-15 19:19:44 +02:00
2020-02-24 00:59:35 +01:00
#### `Remove(item)`
2019-10-15 02:08:41 +02:00
2020-02-24 00:59:35 +01:00
Remove an item from the list.
2019-10-15 02:08:41 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `item` - The item to remove.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
True if it was removed, otherwise false..
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `Contains(item)`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Does the list contain the item provided?
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `item` - The item to check if it is contained in the list.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
`true` if the item exists in the list, otherwise `false` .
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `Get(System.Int32)`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Get item at index.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `i` - The index.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
The item if it exists.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
---
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `CopyTo(array,arrayIndex)`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Copies the entire List to a compatible one-dimensional array, starting at the specified index of the target array.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `array` - The one-dimensional Array that is the destination of the elements copied from List. The Array must have zero-based indexing.
- `arrayIndex` - The zero-based index in `array` at which copying begins.
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `GetEnumerator`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Get an `IEnumerator<T>` of the list.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 23:31:21 +02:00
2020-02-24 00:59:35 +01:00
An `IEnumerator<T>`
2019-10-15 23:31:21 +02:00
2019-10-15 22:21:56 +02:00
---
2020-02-24 00:59:35 +01:00
#### `IndexOf(item)`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Returns the index of the specified item.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `item` - The item to search for.
##### Returns
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
The zero-based index of the first occurrence of `item` . If not found it returns -1.
2019-10-15 22:21:56 +02:00
---
2020-02-24 00:59:35 +01:00
#### `RemoveAt(System.Int32)`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Remove an item at provided index.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `index` - The index to remove item at.
2019-10-15 22:21:56 +02:00
---
2020-02-24 00:59:35 +01:00
#### `Insert(index,item)`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Insert item at index.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
- `index` - Index to insert item at.
- `item` - Item to insert.
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `ObserveAdd`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Make the add event into an `IObservable<T>` . Makes Value List's add Event compatible with for example UniRx.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2020-01-23 23:42:09 +01:00
2020-02-24 00:59:35 +01:00
The add Event as an `IObservable<T>` .
2019-10-15 22:21:56 +02:00
---
2020-02-24 00:59:35 +01:00
#### `ObserveRemove`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Make the remove event into an `IObservable<T>` . Makes Value List's remove Event compatible with for example UniRx.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
The remove Event as an `IObservable<T>` .
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `ObserveClear`
Make the clear event into an `IObservable<Void>` . Makes Value List's clear Event compatible with for example UniRx.
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
##### Returns
The clear Event as an `IObservable<Void>` .
2019-10-15 22:21:56 +02:00
---
2020-02-24 00:59:35 +01:00
## `StringValueList`
2019-10-20 23:21:16 +02:00
2020-02-24 00:59:35 +01:00
Value List of type `string` . Inherits from `AtomValueList<string, StringEvent>` .
2019-10-20 23:21:16 +02:00
---
2020-02-24 00:59:35 +01:00
## `BaseAtomValueList`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
None generic base class of Lists. Inherits from `BaseAtom` .
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
### Variables
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
#### `Cleared`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Event for when the list is cleared.
### Methods
#### `Clear`
Clear the list.
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
## `StringExtensions`
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
Internal extension class for strings.
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
### Methods
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
#### `ToInt(System.String,System.Int32)`
Tries to parse a string to an int.
2019-10-15 22:21:56 +02:00
##### Parameters
2020-01-23 23:42:09 +01:00
- `str` - The string to parse.
- `def` - The default value if not able to parse the provided string.
2019-10-15 22:21:56 +02:00
##### Returns
2020-01-23 23:42:09 +01:00
Returns the string parsed to an int. If not able to parse the string, it returns the default value provided to the method.
2019-10-15 22:21:56 +02:00
---
2020-01-23 23:42:09 +01:00
#### `Repeat(System.String,System.Int32)`
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
Repeats the string X amount of times.
2019-10-15 22:21:56 +02:00
##### Parameters
2020-01-23 23:42:09 +01:00
- `str` - The string to repeat.
- `times` - The number of times to repeat the provided string.
2019-10-15 22:21:56 +02:00
##### Returns
2020-01-23 23:42:09 +01:00
The string repeated X amount of times.
2019-10-15 22:21:56 +02:00
---
2020-01-23 23:42:09 +01:00
## `EditorIcon`
Specify a texture name from your assets which you want to be assigned as an icon to the MonoScript.
2019-10-15 22:21:56 +02:00
---
2020-01-23 23:42:09 +01:00
## `SetVector2VariableValue`
2019-10-15 22:21:56 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `Vector2` . Inherits from `SetVariableValue<Vector2, Vector2Variable, Vector2Constant, Vector2Reference, Vector2Event, Vector2Vector2Event, Vector2VariableInstancer>` .
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
---
2019-10-15 22:21:56 +02:00
2020-01-23 23:42:09 +01:00
## `SetColorVariableValue`
2020-02-24 00:59:35 +01:00
Set variable value Action of type `Color` . Inherits from `SetVariableValue<Color, ColorVariable, ColorConstant, ColorReference, ColorEvent, ColorColorEvent, ColorVariableInstancer>` .
2019-10-15 22:21:56 +02:00
---
2019-10-15 22:23:46 +02:00
2020-01-23 23:42:09 +01:00
## `SetCollider2DVariableValue`
2019-10-15 22:23:46 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `Collider2D` . Inherits from `SetVariableValue<Collider2D, Collider2DVariable, Collider2DConstant, Collider2DReference, Collider2DEvent, Collider2DCollider2DEvent, Collider2DVariableInstancer>` .
2019-10-15 22:23:46 +02:00
---
2019-10-15 22:24:44 +02:00
2020-01-23 23:42:09 +01:00
## `SetBoolVariableValue`
2019-10-15 22:27:22 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `bool` . Inherits from `SetVariableValue<bool, BoolVariable, BoolConstant, BoolReference, BoolEvent, BoolBoolEvent, BoolVariableInstancer>` .
2019-10-15 22:27:22 +02:00
---
2020-01-23 23:42:09 +01:00
## `SetFloatVariableValue`
2019-10-15 22:26:14 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `float` . Inherits from `SetVariableValue<float, FloatVariable, FloatConstant, FloatReference, FloatEvent, FloatFloatEvent, FloatVariableInstancer>` .
2019-10-15 22:26:14 +02:00
---
2020-01-23 23:42:09 +01:00
## `SetVector3VariableValue`
2019-10-15 22:24:44 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `Vector3` . Inherits from `SetVariableValue<Vector3, Vector3Variable, Vector3Constant, Vector3Reference, Vector3Event, Vector3Vector3Event, Vector3VariableInstancer>` .
2019-10-15 22:24:44 +02:00
---
2019-10-15 22:29:05 +02:00
2020-02-24 00:59:35 +01:00
## `SetVariableValue<T,V,C,R,E1,E2,F,VI>`
2019-10-15 22:29:05 +02:00
2020-01-23 23:42:09 +01:00
#### Type Parameters
2019-10-15 22:29:05 +02:00
2020-01-23 23:42:09 +01:00
- `T` - The type of the Variable to set.
- `V` - A Variable class of type `type` to set.
- `C` - A Constant class of type `type` to set.
- `R` - A Reference of type `type` .
- `E1` - An Event of type `type` .
- `E2` - An Event x 2 of type `type` .
2020-02-24 00:59:35 +01:00
- `F` - A Function x 2 of type `type` .
- `VI` - A Variable Instancer of type `type` .
2019-10-15 22:30:18 +02:00
2020-01-23 23:42:09 +01:00
Base class for all SetVariableValue Actions. Inherits from `VoidAction` .
2019-10-15 22:30:18 +02:00
2020-01-23 23:42:09 +01:00
### Variables
#### `_variable`
The Variable to set.
2019-10-15 22:30:18 +02:00
---
2019-10-15 22:32:06 +02:00
2020-01-23 23:42:09 +01:00
#### `_value`
2019-10-15 22:32:06 +02:00
2020-01-23 23:42:09 +01:00
The value to set.
### Methods
#### `Do`
Perform the action.
2019-10-15 22:32:06 +02:00
---
2019-10-15 22:33:06 +02:00
2020-01-23 23:42:09 +01:00
## `SetGameObjectVariableValue`
2019-10-15 22:33:06 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `GameObject` . Inherits from `SetVariableValue<GameObject, GameObjectVariable, GameObjectConstant, GameObjectReference, GameObjectEvent, GameObjectGameObjectEvent, GameObjectVariableInstancer>` .
2019-10-15 22:33:06 +02:00
---
2019-10-15 22:34:08 +02:00
2020-01-23 23:42:09 +01:00
## `SetStringVariableValue`
2019-10-15 22:34:08 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `string` . Inherits from `SetVariableValue<string, StringVariable, StringConstant, StringReference, StringEvent, StringStringEvent, StringVariableInstancer>` .
2019-10-15 22:34:08 +02:00
---
2019-10-15 22:34:48 +02:00
2020-01-23 23:42:09 +01:00
## `SetIntVariableValue`
2019-10-15 22:34:48 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `int` . Inherits from `SetVariableValue<int, IntVariable, IntConstant, IntReference, IntEvent, IntIntEvent, IntVariableInstancer>` .
2019-10-15 22:34:48 +02:00
---
2019-10-16 01:43:51 +02:00
2020-01-23 23:42:09 +01:00
## `SetColliderVariableValue`
2019-10-16 01:43:51 +02:00
2020-02-24 00:59:35 +01:00
Set variable value Action of type `Collider` . Inherits from `SetVariableValue<Collider, ColliderVariable, ColliderConstant, ColliderReference, ColliderEvent, ColliderColliderEvent, ColliderVariableInstancer>` .
---
## `ClampInt`
An `AtomFunction<int, int>` that clamps the value using a min and a max value and returns it.
### Variables
#### `Min`
The minimum value.
---
#### `Max`
The maximum value.
---
## `ClampFloat`
An `AtomFunction<float, float>` that clamps the value using a min and a max value and returns it.
### Variables
#### `Min`
The minimum value.
---
#### `Max`
The maximum value.
2019-10-16 01:43:51 +02:00
---