unity-atoms/docs/api/unityatoms.md

1617 lines
26 KiB
Markdown
Raw Permalink Normal View History

2019-10-15 02:08:41 +02:00
---
id: unityatoms
title: UnityAtoms
hide_title: true
sidebar_label: UnityAtoms
---
# Namespace - `UnityAtoms`
2020-03-02 20:12:38 +01:00
## `Void`
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
Dummy module class used for representing nothing in for example empty Events, eg: `AtomEvent<Void>`
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
## `EquatableAtomReference<T,P,C,V,E1,E2,F,VI>`
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
- `T` - The type of the variable.
- `P` - IPair of type `T`.
- `C` - Constant of type `T`.
- `V` - Variable of type `T`.
- `E1` - Event of type `T`.
- `E2` - Event of type `IPair<T>`.
- `F` - Function of type `T => T`.
- `VI` - Variable Instancer of type `T`.
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
Atom Reference that where the value is implementing `IEquatable`.
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
---
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
## `AtomReferenceUsage`
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
Different Reference usages.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
## `AtomBaseReference`
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
None generic base class for `AtomReference<T, C, V, E1, E2, F, VI>`.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
#### `_usage`
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
Describes how we use the Reference and where the value comes from.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 19:19:44 +02:00
2020-03-21 23:03:14 +01:00
## `AtomReference<T,P,C,V,E1,E2,F,VI>`
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
- `T` - The type of the variable.
- `P` - IPair of type `T`.
- `C` - Constant of type `T`.
- `V` - Variable of type `T`.
- `E1` - Event of type `T`.
- `E2` - Event of type `IPair<T>`.
- `F` - Function of type `T => T`.
- `VI` - Variable Instancer of type `T`.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +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.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
#### `_value`
Value used if `Usage` is set to `Value`.
2019-10-15 19:19:44 +02:00
---
2020-03-02 20:12:38 +01:00
#### `_constant`
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
Constant used if `Usage` is set to `Constant`.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
---
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
#### `_variable`
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
Variable used if `Usage` is set to `Variable`.
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 19:19:44 +02:00
2020-03-02 20:12:38 +01:00
#### `_variableInstancer`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Variable Instancer used if `Usage` is set to `VariableInstancer`.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `Value`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Get or set the value for the Reference.
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-03-21 23:03:14 +01:00
## `AtomEventReferenceUsage`
Different types of Event Reference usages.
---
## `AtomBaseEventReference`
Base class for Event References.
### Variables
#### `_usage`
Describes how we use the Event Reference.
---
## `AtomBaseEventReference<T,E,EI>`
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-03-02 20:12:38 +01:00
- `T` - The type of the event.
- `E` - Event of type `T`.
- `EI` - Event Instancer of type `T`.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +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, Event Instancer, Variable or a Variable Instancer.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `_event`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Event used if `Usage` is set to `Event`.
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-03-02 20:12:38 +01:00
#### `_eventInstancer`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
EventInstancer used if `Usage` is set to `EventInstancer`.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `Event`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Get the event for the Event Reference.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `GetEvent<E>`
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
Get event by type.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
- `E` - undefined
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-03-02 20:12:38 +01:00
The event.
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-03-02 20:12:38 +01:00
#### `SetEvent<E>(e)`
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
Set event by type.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
- `E` - undefined
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
- `e` - The new event value.
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-03-21 23:03:14 +01:00
## `AtomEventReference<T,V,E,VI,EI>`
#### Type Parameters
- `T` - The type of the event.
- `V` - Variable of type `T`.
- `E` - Event of type `T`.
- `VI` - Variable Instancer of type `T`.
- `EI` - Event Instancer of type `T`.
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +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, Event Instancer, Variable or a Variable Instancer.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
#### `_variable`
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
Variable used if `Usage` is set to `Variable`.
---
#### `_variableInstancer`
Variable Instancer used if `Usage` is set to `VariableInstancer`.
### Properties
#### `Event`
Get or set the Event used by the Event Reference.
2019-10-15 20:44:25 +02:00
---
2020-03-21 23:03:14 +01:00
## `AtomListWrapper<T>`
2019-10-15 22:23:46 +02:00
2020-03-21 23:03:14 +01:00
#### Type Parameters
- `T` - Type used in list.
Needed in order to create a property drawer for a List / Array. See this for more info: https://answers.unity.com/questions/605875/custompropertydrawer-for-array-types-in-43.html
2019-10-15 22:23:46 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomVariableInstancer<V,P,T,E1,E2,F>`
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
- `V` - Variable of type T.
- `P` - IPair 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:27:22 +02:00
2020-03-02 20:12:38 +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:26:14 +02:00
2020-03-21 23:03:14 +01:00
### Methods
2019-10-15 22:29:05 +02:00
2020-03-21 23:03:14 +01:00
#### `ImplSpecificSetup`
2019-10-15 22:29:05 +02:00
2020-03-21 23:03:14 +01:00
Override to add implementation specific setup on `OnEnable`.
2019-10-15 22:29:05 +02:00
---
2020-03-02 20:12:38 +01:00
#### `GetEvent<E>`
2019-10-15 22:30:18 +02:00
2020-03-21 23:03:14 +01:00
Get event by type.
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
- `E` - undefined
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
The event.
2019-10-15 22:32:06 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SetEvent<E>(e)`
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
Set event by type.
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
- `E` - undefined
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:33:06 +02:00
2020-03-02 20:12:38 +01:00
- `e` - The new event value.
2019-10-15 22:33:06 +02:00
---
2020-03-21 23:03:14 +01:00
## `AtomBaseVariableInstancer<V,P,T,E1,E2,F>`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
- `V` - Variable of type T.
2020-03-02 20:12:38 +01:00
- `P` - IPair of type `T`.
2020-03-21 23:03:14 +01:00
- `T` - The value type.
- `E1` - Event of type T.
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +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.
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
### Variables
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
#### `_base`
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
The variable that the in memory copy will be based on when created at runtime.
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
### Properties
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
#### `Variable`
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
Getter for retrieving the in memory runtime variable.
2019-10-15 22:27:22 +02:00
---
2020-03-21 23:03:14 +01:00
#### `Value`
2019-10-15 22:24:44 +02:00
2020-03-21 23:03:14 +01:00
Getter for retrieving the value of the in memory runtime variable.
2019-10-15 22:24:44 +02:00
2020-03-21 23:03:14 +01:00
### Methods
2019-10-15 22:24:44 +02:00
2020-03-21 23:03:14 +01:00
#### `ImplSpecificSetup`
2019-10-15 22:29:05 +02:00
2020-03-21 23:03:14 +01:00
Override to add implementation specific setup on `OnEnable`.
2019-10-15 22:29:05 +02:00
---
2020-03-21 23:03:14 +01:00
## `Runtime`
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
Internal constant and static readonly members for runtime usage.
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
### Properties
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
#### `IsUnityAtomsRepo`
2019-10-15 22:33:06 +02:00
2020-03-21 23:03:14 +01:00
Determine if we are working the Unity Atoms source library / repo or not.
2019-10-15 22:33:06 +02:00
---
2020-03-21 23:03:14 +01:00
## `Runtime.Constants`
2020-01-23 23:42:09 +01:00
2020-03-21 23:03:14 +01:00
Runtime constants
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
### Variables
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
#### `LOG_PREFIX`
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
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
---
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
## `Runtime.ExecutionOrder`
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
Constants for defining DefaultExecutionOrder.
2019-10-15 22:34:48 +02:00
---
2020-03-21 23:03:14 +01:00
## `EditorIcon`
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
Specify a texture name from your assets which you want to be assigned as an icon to the MonoScript.
2020-02-24 00:59:35 +01:00
---
2020-03-21 23:03:14 +01:00
## `ReadOnlyAttribute`
2019-10-15 22:27:22 +02:00
2020-03-21 23:03:14 +01:00
Use to make a field read only in the Unity inspector. Solution taken from here: https://answers.unity.com/questions/489942/how-to-make-a-readonly-property-in-inspector.html
2019-10-15 22:27:22 +02:00
---
2020-03-21 23:03:14 +01:00
## `AtomEventInstancer<T,E>`
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:26:14 +02:00
2020-03-21 23:03:14 +01:00
- `T` - The value type.
- `E` - Event of type T.
2020-01-23 23:42:09 +01:00
2020-03-21 23:03:14 +01:00
An Event Instancer is a MonoBehaviour that takes an Event as a base and creates an in memory copy of it on OnEnable. This is handy when you want to use Events for prefabs that are instantiated at runtime.
2019-10-15 22:29:05 +02:00
2020-03-21 23:03:14 +01:00
### Variables
2019-10-15 22:29:05 +02:00
2020-03-21 23:03:14 +01:00
#### `_base`
2019-10-15 22:30:18 +02:00
2020-03-21 23:03:14 +01:00
The Event that the in memory copy will be based on when created at runtime.
2019-10-15 22:30:18 +02:00
2020-03-21 23:03:14 +01:00
### Properties
2019-10-15 22:30:18 +02:00
2020-03-21 23:03:14 +01:00
#### `Event`
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
Getter for retrieving the in memory runtime Event.
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
### Methods
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
#### `GetEvent<E>`
2019-10-15 22:33:06 +02:00
2020-03-21 23:03:14 +01:00
Get event by type.
2019-10-15 22:33:06 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:33:06 +02:00
2020-03-21 23:03:14 +01:00
- `E` - undefined
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:34:48 +02:00
2020-03-21 23:03:14 +01:00
The event.
2019-10-15 22:34:48 +02:00
---
2020-03-21 23:03:14 +01:00
#### `SetEvent<E>(e)`
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
Set event by type.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
- `E` - undefined
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
- `e` - The new event value.
2019-10-15 20:44:25 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomBaseVariable`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
None generic base class for Variables. Inherits from `BaseAtom`.
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
### Properties
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
#### `BaseValue`
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
The Variable value as an `object`.abstract Beware of boxing! 🥊
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
### Methods
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
#### `Reset(System.Boolean)`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Abstract method that could be implemented to reset the Variable value.
2019-11-28 19:35:59 +01:00
---
2020-03-02 20:12:38 +01:00
## `AtomBaseVariable<T>`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
- `T` - The Variable value type.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +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-03-02 20:12:38 +01:00
#### `BaseValue`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The Variable value as an `object`.abstract Beware of boxing! 🥊
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-03-02 20:12:38 +01:00
#### `Value`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The Variable value as a property.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `Equals(other)`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Determines equality between Variables.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
- `other` - The other Variable to compare.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +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-03-02 20:12:38 +01:00
#### `Reset(System.Boolean)`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Not implemented.abstract Throws Exception
2019-10-15 20:44:25 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomVariable<T,P,E1,E2,F>`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
- `T` - The Variable value type.
- `P` - IPair of type `T`.
- `E1` - Event of type `AtomEvent<T>`.
- `E2` - Event of type `AtomEvent<T, T>`.
- `F` - Function of type `FunctionEvent<T, T>`.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Generic base class for Variables. Inherits from `AtomBaseVariable<T>`.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `Changed`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Changed Event triggered when the Variable value gets changed.
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-03-02 20:12:38 +01:00
#### `ChangedWithHistory`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Changed with history Event triggered when the Variable value gets changed.
2019-10-15 20:44:25 +02:00
2020-03-21 23:03:14 +01:00
---
#### `_initialValue`
The inital value of the Variable.
2020-03-02 20:12:38 +01:00
### Properties
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `Value`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The Variable value as a property.
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-03-02 20:12:38 +01:00
#### `InitialValue`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The inital Variable value as a property.
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-03-02 20:12:38 +01:00
#### `OldValue`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The value the Variable had before its value got changed last time.
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-03-02 20:12:38 +01:00
#### `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.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `Reset(System.Boolean)`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Reset the Variable to its `_initalValue`.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
- `shouldTriggerEvents` - Set to `true` if Events should be triggered on reset, otherwise `false`.
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
#### `SetValue(newValue)`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Set the Variable value.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
- `newValue` - The new value to set.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
##### Returns
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
`true` if the value got changed, otherwise `false`.
2019-10-15 20:44:25 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SetValue(variable)`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Set the Variable value.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
##### Parameters
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
- `variable` - The value to set provided from another Variable.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
`true` if the value got changed, otherwise `false`.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
---
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
#### `ObserveChange`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
Turn the Variable's change Event into an `IObservable<T>`. Makes the Variable's change Event compatible with for example UniRx.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The Variable's change Event as an `IObservable<T>`.
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-03-02 20:12:38 +01:00
#### `ObserveChangeWithHistory`
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
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.
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 20:44:25 +02:00
2020-03-02 20:12:38 +01:00
The Variable's change Event as an `IObservable<T, T>`.
2019-10-15 20:44:25 +02:00
---
2020-03-02 20:12:38 +01:00
#### `GetEvent<E>`
2019-10-15 22:23:46 +02:00
2020-03-21 23:03:14 +01:00
Get event by type.
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
- `E` - undefined
##### Returns
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
The event.
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-03-02 20:12:38 +01:00
#### `SetEvent<E>(e)`
2019-10-15 22:27:22 +02:00
2020-03-21 23:03:14 +01:00
Set event by type.
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
- `E` - undefined
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
- `e` - The new event value.
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-03-21 23:03:14 +01:00
## `EquatableAtomVariable<T,P,E1,E2,F>`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:30:18 +02:00
2020-03-21 23:03:14 +01:00
- `T` - The Variable type.
- `P` - Pair of type T.
- `E1` - Event of type T.
- `E2` - Pair event of type T.
- `F` - Function of type T and T.
2019-10-15 22:32:06 +02:00
2020-03-21 23:03:14 +01:00
Atom Variable base class for types that are implementing `IEquatable<T>`.
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-03-21 23:03:14 +01:00
## `AtomAction`
2019-10-15 22:34:08 +02:00
2020-03-21 23:03:14 +01:00
Base abstract class for Actions. Inherits from `BaseAtom`.
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 22:34:08 +02:00
2020-03-21 23:03:14 +01:00
#### `Do`
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
Perform the Action.
2020-02-24 00:59:35 +01:00
2019-10-15 22:34:48 +02:00
---
2020-03-21 23:03:14 +01:00
## `AtomAction<T1>`
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-03-21 23:03:14 +01:00
- `T1` - The type for this Action.
2019-10-15 22:37:15 +02:00
2020-03-02 20:12:38 +01:00
Generic abstract base class for Actions. Inherits from `AtomAction`.
2019-10-15 22:37:15 +02:00
2020-02-24 00:59:35 +01:00
### Methods
2019-10-15 21:39:32 +02:00
2020-03-21 23:03:14 +01:00
#### `Do(t1)`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Perform the Action.
2019-10-15 21:39:32 +02:00
2020-02-24 00:59:35 +01:00
##### Parameters
2020-03-02 20:12:38 +01:00
- `t1` - The first parameter.
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-03-02 20:12:38 +01:00
## `AtomFunction<R>`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `R` - The type to return from the Function.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Generic abstract base class for Functions. Inherits from `BaseAtom`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
#### `Func`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
The actual function.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Call`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Call the Function.
2019-10-15 21:39:32 +02:00
##### Returns
2020-03-02 20:12:38 +01:00
Whatever the function decides to return of type `R`.
2019-10-15 21:39:32 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SetFunc(func)`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Set the Function providing a `Func<R>`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `func` - The `Func<R>` to set.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
An `AtomFunction<R>`.
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-03-02 20:12:38 +01:00
## `AtomFunction<R,T1>`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `R` - The type to return from the Function.
- `T1` - The parameter type for this Function.
Generic abstract base class for Functions. Inherits from `BaseAtom`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Func`
The actual function.
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-03-02 20:12:38 +01:00
#### `Call(t1)`
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
Call the Function.
2019-11-28 19:35:59 +01:00
##### Parameters
2020-03-02 20:12:38 +01:00
- `t1` - The first parameter.
##### Returns
Whatever the function decides to return of type `R`.
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-03-02 20:12:38 +01:00
#### `SetFunc(func)`
2019-11-28 19:35:59 +01:00
2020-03-02 20:12:38 +01:00
Set the Function providing a `Func<T1, R>`.
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-03-02 20:12:38 +01:00
- `func` - The `Func<T1, R>` to set.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
An `AtomFunction<R, T1>`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
## `AtomFunction<R,T1,T2>`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
- `R` - The type to return from the Function.
- `T1` - The first parameter type for this Function.
- `T2` - The second parameter type for this Function.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Generic abstract base class for Functions. Inherits from `BaseAtom`.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Func`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
The actual function.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Call(t1,t2)`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
Call the Function.
2020-02-24 00:59:35 +01:00
##### Parameters
2020-03-02 20:12:38 +01:00
- `t1` - The first parameter.
- `t2` - The second parameter.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Whatever the function decides to return of type `R`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
---
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
#### `SetFunc(func)`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
Set the Function providing a `Func<T1, T2, R>`.
2019-10-15 21:39:32 +02:00
##### Parameters
2020-03-02 20:12:38 +01:00
- `func` - The `Func<T1, T2, R>` to set.
2020-01-23 23:42:09 +01:00
##### Returns
2020-03-02 20:12:38 +01:00
An `AtomFunction<R, T1, T2>`.
2019-10-15 21:39:32 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomFunction<R,T1,T2,T3>`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `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.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Generic abstract base class for Functions. Inherits from `BaseAtom`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Func`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
The actual function.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Call(t1,t2,t3)`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Call the Function.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Whatever the function decides to return of type `R`.
2019-10-15 21:39:32 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SetFunc(func)`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Set the Function providing a `Func<T1, T2, T3, R>`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `func` - The `Func<T1, T2, T3, R>` to set.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
An `AtomFunction<R, T1, T2, T3>`.
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-03-02 20:12:38 +01:00
## `AtomFunction<R,T1,T2,T3,T4>`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
- `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.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
Generic abstract base class for Functions. Inherits from `BaseAtom`.
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
#### `Func`
2019-10-15 21:39:32 +02:00
2020-03-02 20:12:38 +01:00
The actual function.
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
#### `Call(t1,t2,t3,t4)`
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
Call the Function.
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
- `t4` - The fourth parameter.
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
Whatever the function decides to return of type `R`.
2019-10-15 22:26:14 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SetFunc(func)`
2019-10-15 22:24:44 +02:00
2020-03-02 20:12:38 +01:00
Set the Function providing a `Func<T1, T2, T3, T4 R>`.
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
- `func` - The `Func<T1, T2, T3, T4, R>` to set.
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
An `AtomFunction<R, T1, T2, T3, T4>`.
2019-10-15 22:30:18 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomFunction<R,T1,T2,T3,T4,T5>`
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-03-02 20:12:38 +01:00
- `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.
2019-10-15 22:34:48 +02:00
2020-03-02 20:12:38 +01:00
Generic abstract base class for Functions. Inherits from `BaseAtom`.
2019-10-15 22:02:44 +02:00
2020-02-24 00:59:35 +01:00
### Variables
2020-03-02 20:12:38 +01:00
#### `Func`
2020-03-02 20:12:38 +01:00
The actual function.
2020-03-02 20:12:38 +01:00
### Methods
2020-03-02 20:12:38 +01:00
#### `Call(t1,t2,t3,t4,t5)`
2020-03-02 20:12:38 +01:00
Call the Function.
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
- `t1` - The first parameter.
- `t2` - The second parameter.
- `t3` - The third parameter.
- `t4` - The fourth parameter.
- `t5` - The fifth parameter.
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
Whatever the function decides to return of type `R`.
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
#### `SetFunc(func)`
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
Set the Function providing a `Func<T1, T2, T3, T4, T5 R>`.
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
- `func` - The `Func<T1, T2, T3, T4, T5, R>` to set.
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:24:44 +02:00
2020-03-02 20:12:38 +01:00
An `AtomFunction<R, T1, T2, T3, T4, T5>`.
2019-10-15 22:24:44 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomEventBase`
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
None generic base class for Events. Inherits from `BaseAtom` and `ISerializationCallbackReceiver`.
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
#### `Register(System.Action)`
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
Register handler to be called when the Event triggers.
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:33:06 +02:00
2020-03-02 20:12:38 +01:00
- `del` - The handler.
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-03-02 20:12:38 +01:00
#### `Unregister(System.Action)`
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
Unregister handler that was registered using the `Register` method.
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:34:48 +02:00
2020-03-02 20:12:38 +01:00
- `del` - The handler.
2019-10-15 22:34:48 +02:00
---
2020-03-02 20:12:38 +01:00
#### `RegisterListener(UnityAtoms.IAtomListener)`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
Register a Listener that in turn trigger all its associated handlers when the Event triggers.
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
- `listener` - The Listener to register.
2019-10-15 22:23:46 +02:00
---
2020-03-02 20:12:38 +01:00
#### `UnregisterListener(UnityAtoms.IAtomListener)`
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
Unregister a listener that was registered using the `RegisterListener` method.
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
- `listener` - The Listener to unregister.
2019-10-15 22:27:22 +02:00
---
2020-03-02 20:12:38 +01:00
## `AtomEvent<T>`
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
- `T` - The type for this Event.
Generic base class for Events. Inherits from `AtomEventBase`.
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-03-02 20:12:38 +01:00
#### `_replayBufferSize`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
The event replays the specified number of old values to new subscribers. Works like a ReplaySubject in Rx.
2019-10-15 22:26:14 +02:00
---
2020-03-02 20:12:38 +01:00
#### `_inspectorRaiseValue`
Used when raising values from the inspector for debugging purposes.
2020-03-21 23:03:14 +01:00
### Properties
#### `ReplayBuffer`
Retrieve Replay Buffer as a List. This call will allocate memory so use sparsely.
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
#### `Raise(item)`
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
Raise the Event.
2019-10-15 22:24:44 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
- `item` - The value associated with the Event.
2019-10-15 22:24:44 +02:00
---
2020-03-21 23:03:14 +01:00
#### `RaiseEditor(item)`
Used in editor scipts since Raise is ambigious when using reflection to get method.
##### Parameters
- `item` - undefined
---
2020-03-02 20:12:38 +01:00
#### `Register(action)`
2019-10-15 22:24:44 +02:00
2020-03-02 20:12:38 +01:00
Register handler to be called when the Event triggers.
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
- `action` - The handler.
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-03-02 20:12:38 +01:00
#### `Unregister(action)`
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
Unregister handler that was registered using the `Register` method.
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
- `action` - The handler.
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 22:30:18 +02:00
2020-03-21 23:03:14 +01:00
#### `UnregisterAll`
Unregister all handlers that were registered using the `Register` method.
---
2020-03-02 20:12:38 +01:00
#### `RegisterListener(listener)`
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
Register a Listener that in turn trigger all its associated handlers when the Event triggers.
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
- `listener` - The Listener to register.
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
---
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
#### `UnregisterListener(listener)`
Unregister a listener that was registered using the `RegisterListener` method.
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-03-02 20:12:38 +01:00
- `listener` - The Listener to unregister.
2019-10-15 22:33:06 +02:00
---
2020-03-02 20:12:38 +01:00
#### `Observe`
2019-10-15 22:33:06 +02:00
2020-03-02 20:12:38 +01:00
Turn the Event into an `IObservable<T>`. Makes Events compatible with for example UniRx.
##### Returns
The Event as an `IObservable<T>`.
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-03-21 23:03:14 +01:00
## `AtomEventReferenceListener<T,E,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.
2020-03-02 20:12:38 +01:00
- `E` - Event of type `T`.
- `ER` - Event Reference of type `T`.
- `UER` - UnityEvent of type `T`.
2019-10-15 22:34:48 +02:00
2020-03-21 23:03:14 +01:00
Generic base class for Listeners using Event Reference. Inherits from `AtomListener<T, E, UER>` 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
### Properties
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +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-01-23 23:42:09 +01:00
---
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
## `AtomBaseListener`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
None generic base class for all Listeners.
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
#### `_developerDescription`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
A description of the Listener made for documentation purposes.
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-03-21 23:03:14 +01:00
## `AtomBaseListener<T,E,UER>`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
- `T` - The type that we are listening for.
- `E` - Event of type `T`.
- `UER` - UnityEvent of type `T`.
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +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-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-03-02 20:12:38 +01:00
#### `OnEventRaised(item)`
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-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
- `item` - The Event type.
2019-10-15 22:02:44 +02:00
---
2020-03-02 20:12:38 +01:00
#### `DebugLog(`0)`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
Helper to regiser as listener callback
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-03-21 23:03:14 +01:00
## `AtomEventListener<T,E,UER>`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
- `T` - The type that we are listening for.
- `E` - Event of type `T`.
- `UER` - UnityEvent of type `T`.
2019-10-15 22:02:44 +02:00
2020-03-21 23:03:14 +01:00
Generic base class for Listeners using Event. Inherits from `AtomListener<T, E, UER>` and implements `IAtomListener<T>`.
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
### Variables
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
#### `_event`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
The Event that we are listening to.
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
### Properties
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
#### `Event`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +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
---
2019-10-15 22:02:44 +02:00
2020-03-21 23:03:14 +01:00
## `VariableResetter`
Resets all the Variables in the list on OnEnable. Note that this will cause Events on the Variables to be triggered.
---
2020-03-02 20:12:38 +01:00
## `BaseAtom`
2019-10-15 22:02:44 +02:00
2020-03-02 20:12:38 +01:00
None generic base class for all Atoms.
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
### Variables
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
#### `_developerDescription`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +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
## `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-03-02 20:12:38 +01:00
Generic base class for Value 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
## `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-03-21 23:03:14 +01:00
## `IPair`1`
Interface defining a generic `IPair<T>`.
---
## `IIsValid`
Interface defining an `IsValid` method.
---
## `ISetEvent`
Interface for setting an event.
---
## `IGetEvent`
Interface for getting an event.
---
## `IAtomCollection`
Interface for Atom Collections.
---
## `IVariable`1`
Interface for retrieving a Variable.
---
## `IGetValue`1`
Interface for getting a value.
---
## `IAtomList`
Interface for Atom Lists.
---
2020-03-02 20:12:38 +01:00
## `IMGUIUtils`
2019-10-15 22:21:56 +02:00
2020-03-02 20:12:38 +01:00
Utility methods for IMGUI.
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-03-02 20:12:38 +01:00
#### `SnipRectH(UnityEngine.Rect,System.Single)`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Snip a `Rect` horizontally.
2019-10-15 22:21:56 +02:00
##### Parameters
2020-03-02 20:12:38 +01:00
- `rect` - The rect.
- `range` - The range.
2019-10-15 22:21:56 +02:00
##### Returns
2020-03-02 20:12:38 +01:00
A new `Rect` snipped horizontally.
2019-10-15 22:21:56 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SnipRectH(UnityEngine.Rect,System.Single,UnityEngine.Rect@,System.Single)`
2019-10-15 22:21:56 +02:00
2020-03-02 20:12:38 +01:00
Snip a `Rect` horizontally.
2019-10-15 22:21:56 +02:00
##### Parameters
2020-03-02 20:12:38 +01:00
- `rect` - The rect.
- `range` - The range.
- `rest` - Rest rect.
- `gutter` - Gutter
2019-10-15 22:21:56 +02:00
##### Returns
2020-03-02 20:12:38 +01:00
A new `Rect` snipped horizontally.
2019-10-15 22:21:56 +02:00
---
2020-03-02 20:12:38 +01:00
#### `SnipRectV(UnityEngine.Rect,System.Single)`
2019-10-15 22:21:56 +02:00
2020-03-02 20:12:38 +01:00
Snip a `Rect` vertically.
2019-10-15 22:21:56 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:21:56 +02:00
2020-03-02 20:12:38 +01:00
- `rect` - The rect.
- `range` - The range.
2019-10-15 22:21:56 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
A new `Rect` snipped vertically.
2019-10-15 22:21:56 +02:00
---
2019-10-15 22:23:46 +02:00
2020-03-02 20:12:38 +01:00
#### `SnipRectV(UnityEngine.Rect,System.Single,UnityEngine.Rect@,System.Single)`
2019-10-15 22:24:44 +02:00
2020-03-02 20:12:38 +01:00
Snip a `Rect` vertically.
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
- `rect` - The rect.
- `range` - The range.
- `rest` - Rest rect.
- `gutter` - Gutter
2019-10-15 22:27:22 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:26:14 +02:00
2020-03-02 20:12:38 +01:00
A new `Rect` snipped vertically.
2019-10-15 22:26:14 +02:00
---
2020-03-02 20:12:38 +01:00
## `StringExtensions`
2019-10-15 22:24:44 +02:00
2020-03-02 20:12:38 +01:00
Internal extension class for strings.
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
### Methods
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
#### `ToInt(System.String,System.Int32)`
2019-10-15 22:29:05 +02:00
2020-03-02 20:12:38 +01:00
Tries to parse a string to an int.
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:30:18 +02:00
2020-03-02 20:12:38 +01:00
- `str` - The string to parse.
- `def` - The default value if not able to parse the provided string.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
##### Returns
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +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:30:18 +02:00
---
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
#### `Repeat(System.String,System.Int32)`
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
Repeats the string X amount of times.
2020-01-23 23:42:09 +01:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:32:06 +02:00
2020-03-02 20:12:38 +01:00
- `str` - The string to repeat.
- `times` - The number of times to repeat the provided string.
2019-10-15 22:33:06 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-15 22:33:06 +02:00
2020-03-02 20:12:38 +01:00
The string repeated X amount of times.
2019-10-15 22:33:06 +02:00
---
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
#### `Capitalize(System.String)`
2019-10-15 22:34:08 +02:00
2020-03-02 20:12:38 +01:00
Capitalize the provided string.
2019-10-15 22:34:48 +02:00
2020-03-02 20:12:38 +01:00
##### Parameters
2019-10-15 22:34:48 +02:00
2020-03-02 20:12:38 +01:00
- `str` - The string to capitalize.
2019-10-16 01:43:51 +02:00
2020-03-02 20:12:38 +01:00
##### Returns
2019-10-16 01:43:51 +02:00
2020-03-02 20:12:38 +01:00
A capitalized version of the string provided.
2020-02-24 00:59:35 +01:00
---
2020-03-21 23:03:14 +01:00
## `SetVariableValue<T,P,V,C,R,E1,E2,F,VI>`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
#### Type Parameters
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
- `T` - The type of the Variable to set.
- `P` - A IPair of type T.
2020-03-21 23:03:14 +01:00
- `V` - A Variable class of type `T` to set.
- `C` - A Constant class of type `T`.
2020-03-02 20:12:38 +01:00
- `R` - A Reference of type `T`.
- `E1` - An Event of type `T`.
- `E2` - An Event x 2 of type `T`.
- `F` - A Function x 2 of type `T`.
- `VI` - A Variable Instancer of type `T`.
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
Base class for all SetVariableValue Actions. Inherits from `AtomAction`.
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
### Variables
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
#### `_variable`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
The Variable to set.
2020-02-24 00:59:35 +01:00
---
2020-03-02 20:12:38 +01:00
#### `_value`
2020-02-24 00:59:35 +01:00
2020-03-21 23:03:14 +01:00
The value to use.
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
### Methods
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
#### `Do`
2020-02-24 00:59:35 +01:00
2020-03-02 20:12:38 +01:00
Perform the action.
2019-10-16 01:43:51 +02:00
---