mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
v3.0.0 🐉
This commit is contained in:
parent
85f72abf8a
commit
3613e32c34
23
CHANGELOG.md
23
CHANGELOG.md
@ -8,6 +8,29 @@
|
||||
|
||||
# [Unreleased]
|
||||
|
||||
# 3.0.0 (February 24, 2020)
|
||||
|
||||
## 🏠 Internal
|
||||
|
||||
- [beb7405](https://github.com/AdamRamberg/unity-atoms/commit/beb740503c1cad86a200def6bf40897149b26340) - Updated Example project to 2019.3.1f1. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
|
||||
## 🚀 New features
|
||||
|
||||
- [#93](https://github.com/AdamRamberg/unity-atoms/pull/93) - Added pre change transformers to Variables + Clamp Int / Float. Pre Change Transformers makes it possible to add functions to Variables that gets executed when a Variable is about to get changed and that transforms the value in some way, eg. clamps an IntVariable between two values. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#110](https://github.com/AdamRamberg/unity-atoms/pull/110) - Added Variable Instancer, Event Reference, Atom Collection and Atom List (old Atom List renamed to Atom Value List). See docs. future blog post and PR for more information regarding these features. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#113](https://github.com/AdamRamberg/unity-atoms/pull/113) - Added constructor with value to Reference classes. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#114](https://github.com/AdamRamberg/unity-atoms/pull/114) - Added Replay functionality to Atom Events. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#115](https://github.com/AdamRamberg/unity-atoms/pull/115) - Add util actions to Variables. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
|
||||
# 2.2.0 (February 23, 2020)
|
||||
|
||||
## 🐛 Bug fixes
|
||||
|
||||
- [#106](https://github.com/AdamRamberg/unity-atoms/pull/111) - Reactivate Generator function in Unity 2018.4. ([@fakegood](https://github.com/fakegood), [@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#109](https://github.com/AdamRamberg/unity-atoms/pull/108) - IsUnityAtomsRepo should never be settable. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#109](https://github.com/AdamRamberg/unity-atoms/pull/109) - Fix indentation bug in variable drawer. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
- [#111](https://github.com/AdamRamberg/unity-atoms/pull/111) - Variables are now equal by reference instead of being equal by value. Should maybe been part of a major release because it is technically an API breaking changes, but considered a bug so instead bumping minior. ([@AdamRamberg](https://github.com/AdamRamberg))
|
||||
|
||||
# 2.1.1 (January 23, 2020)
|
||||
|
||||
## 🐛 Bug fixes
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms-core",
|
||||
"displayName": "Unity Atoms Core",
|
||||
"version": "2.1.1",
|
||||
"unity": "2019.1",
|
||||
"version": "3.0.0",
|
||||
"unity": "2018.3",
|
||||
"description": "Tiny modular pieces utilizing the power of Scriptable Objects",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms-mobile",
|
||||
"displayName": "Unity Atoms Mobile",
|
||||
"version": "2.1.1",
|
||||
"unity": "2019.1",
|
||||
"version": "3.0.0",
|
||||
"unity": "2018.3",
|
||||
"description": "Unity Atoms for your mobile project.",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms-mono-hooks",
|
||||
"displayName": "Unity Atoms Mono Hooks",
|
||||
"version": "2.1.1",
|
||||
"unity": "2019.1",
|
||||
"version": "3.0.0",
|
||||
"unity": "2018.3",
|
||||
"description": "Hook into Unity's lifecycle methods with Atom Events.",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms-scene-mgmt",
|
||||
"displayName": "Unity Atoms Scene Mgmt",
|
||||
"version": "2.1.1",
|
||||
"unity": "2019.1",
|
||||
"version": "3.0.0",
|
||||
"unity": "2018.3",
|
||||
"description": "Unity Atoms to manage your scenes.",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms-tags",
|
||||
"displayName": "Unity Atoms Tags",
|
||||
"version": "2.1.1",
|
||||
"unity": "2019.1",
|
||||
"version": "3.0.0",
|
||||
"unity": "2018.3",
|
||||
"description": "A replacement to Unity´s tags based on Unity Atoms.",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms-ui",
|
||||
"displayName": "Unity Atoms UI",
|
||||
"version": "2.1.1",
|
||||
"unity": "2019.1",
|
||||
"version": "3.0.0",
|
||||
"unity": "2018.3",
|
||||
"description": "UI system using Unity Atoms.",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
12
README.md
12
README.md
@ -51,12 +51,12 @@ Add the following to your `manifest.json`:
|
||||
],
|
||||
"dependencies": {
|
||||
...
|
||||
"com.mambojambostudios.unity-atoms-core": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-mobile": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-mono-hooks": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-tags": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-scene-mgmt": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-ui": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-core": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-mobile": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-mono-hooks": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-tags": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-scene-mgmt": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-ui": "3.0.0",
|
||||
...
|
||||
}
|
||||
}
|
||||
|
@ -26,23 +26,6 @@ Called when new assets are imported, deleted or moved.
|
||||
|
||||
---
|
||||
|
||||
## `AtomEventEditor<T,E>`
|
||||
|
||||
#### Type Parameters
|
||||
|
||||
- `T` - undefined
|
||||
- `E` - undefined
|
||||
|
||||
Custom editor for Events. Adds the possiblity to raise an Event from Unity's Inspector.
|
||||
|
||||
---
|
||||
|
||||
## `AtomVariableEditor`
|
||||
|
||||
Custom editor for Variables. Provides a better user workflow and indicates when which variables can be edited
|
||||
|
||||
---
|
||||
|
||||
## `RegenereateAllAtoms`
|
||||
|
||||
Internal utility class to regenerate all Atoms. Reachable via top menu bar and `Tools/Unity Atoms/Regenerate All Atoms`.
|
||||
@ -226,7 +209,7 @@ Resolve file name based on input data.
|
||||
|
||||
##### Parameters
|
||||
|
||||
- `templateVariables` - Template variables.
|
||||
- `templateVariables` - Template variables.
|
||||
- `templateName` - Template name.
|
||||
- `lastIndexOfDoubleUnderscore` - Last index of double underscore.
|
||||
- `capitalizedType` - Capitalized type.
|
||||
@ -292,6 +275,12 @@ Internal static class holding predefined static `AtomType`s.
|
||||
|
||||
---
|
||||
|
||||
## `AtomEventReferenceDrawer`
|
||||
|
||||
A custom property drawer for Event References. Makes it possible to choose between an Event, Variable or a Variable Instancer.
|
||||
|
||||
---
|
||||
|
||||
## `AtomDrawer<T>`
|
||||
|
||||
#### Type Parameters
|
||||
@ -304,7 +293,7 @@ The base Unity Atoms property drawer. Makes it possible to create and add a new
|
||||
|
||||
## `AtomReferenceDrawer`
|
||||
|
||||
A custom property drawer for References. Makes it possible to choose between a Variable and a constant value (not a Atom Contant, but a regular value).
|
||||
A custom property drawer for References. Makes it possible to choose between a value, Variable, Constant or a Variable Instancer.
|
||||
|
||||
---
|
||||
|
||||
@ -356,6 +345,12 @@ Variable Inspector of type `Vector3`. Inherits from `AtomVariableEditor`
|
||||
|
||||
---
|
||||
|
||||
## `AtomVariableEditor`
|
||||
|
||||
Custom editor for Variables. Provides a better user workflow and indicates when which variables can be edited
|
||||
|
||||
---
|
||||
|
||||
## `FloatVariableEditor`
|
||||
|
||||
Variable Inspector of type `float`. Inherits from `AtomVariableEditor`
|
||||
@ -374,6 +369,12 @@ Event property drawer of type `bool`. Inherits from `AtomEventEditor<bool, BoolE
|
||||
|
||||
---
|
||||
|
||||
## `BoolBoolEventEditor`
|
||||
|
||||
Event property drawer of type `<bool, bool>`. Inherits from `AtomEventEditor<bool, bool, BoolEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `ColliderEventEditor`
|
||||
|
||||
Event property drawer of type `Collider`. Inherits from `AtomEventEditor<Collider, ColliderEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
@ -392,12 +393,53 @@ Event property drawer of type `Vector2`. Inherits from `AtomEventEditor<Vector2,
|
||||
|
||||
---
|
||||
|
||||
## `AtomEventEditor<T,E>`
|
||||
|
||||
#### Type Parameters
|
||||
|
||||
- `T` - The type of this event..
|
||||
- `E` - Event of type T.
|
||||
|
||||
Custom editor for Events. Adds the possiblity to raise an Event from Unity's Inspector.
|
||||
|
||||
---
|
||||
|
||||
## `AtomEventEditor<T1,T2,E>`
|
||||
|
||||
#### Type Parameters
|
||||
|
||||
- `T1` - The first type of this Event.
|
||||
- `T2` - The second type of this Event.
|
||||
- `E` - Event of type T1 and T2.
|
||||
|
||||
Custom editor for Events. Adds the possiblity to raise an Event from Unity's Inspector.
|
||||
|
||||
---
|
||||
|
||||
## `IntEventEditor`
|
||||
|
||||
Event property drawer of type `int`. Inherits from `AtomEventEditor<int, IntEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Vector3Vector3EventEditor`
|
||||
|
||||
Event property drawer of type `<Vector3, Vector3>`. Inherits from `AtomEventEditor<Vector3, Vector3, Vector3Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `GameObjectGameObjectEventEditor`
|
||||
|
||||
Event property drawer of type `<GameObject, GameObject>`. Inherits from `AtomEventEditor<GameObject, GameObject, GameObjectEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `FloatFloatEventEditor`
|
||||
|
||||
Event property drawer of type `<float, float>`. Inherits from `AtomEventEditor<float, float, FloatEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Collider2DEventEditor`
|
||||
|
||||
Event property drawer of type `Collider2D`. Inherits from `AtomEventEditor<Collider2D, Collider2DEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
@ -406,7 +448,25 @@ Event property drawer of type `Collider2D`. Inherits from `AtomEventEditor<Colli
|
||||
|
||||
## `VoidEventEditor`
|
||||
|
||||
Event property drawer of type `Void`. Inherits from `AtomEventEditor<Void, VoidEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `Void`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `AtomBaseVariableEventEditor`
|
||||
|
||||
Event property drawer of type `AtomBaseVariable`. Inherits from `AtomEventEditor<AtomBaseVariable, AtomBaseVariableEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Collider2DCollider2DEventEditor`
|
||||
|
||||
Event property drawer of type `<Collider2D, Collider2D>`. Inherits from `AtomEventEditor<Collider2D, Collider2D, Collider2DEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `ColliderColliderEventEditor`
|
||||
|
||||
Event property drawer of type `<Collider, Collider>`. Inherits from `AtomEventEditor<Collider, Collider, ColliderEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
@ -434,63 +494,27 @@ Event property drawer of type `Vector3`. Inherits from `AtomEventEditor<Vector3,
|
||||
|
||||
---
|
||||
|
||||
## `ColorListDrawer`
|
||||
## `IntIntEventEditor`
|
||||
|
||||
List property drawer of type `Color`. Inherits from `AtomDrawer<ColorList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `<int, int>`. Inherits from `AtomEventEditor<int, int, IntEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `StringListDrawer`
|
||||
## `ColorColorEventEditor`
|
||||
|
||||
List property drawer of type `string`. Inherits from `AtomDrawer<StringList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `<Color, Color>`. Inherits from `AtomEventEditor<Color, Color, ColorEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `GameObjectListDrawer`
|
||||
## `Vector2Vector2EventEditor`
|
||||
|
||||
List property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `<Vector2, Vector2>`. Inherits from `AtomEventEditor<Vector2, Vector2, Vector2Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `ColliderListDrawer`
|
||||
## `StringStringEventEditor`
|
||||
|
||||
List property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `BoolListDrawer`
|
||||
|
||||
List property drawer of type `bool`. Inherits from `AtomDrawer<BoolList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Collider2DListDrawer`
|
||||
|
||||
List property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Vector3ListDrawer`
|
||||
|
||||
List property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3List>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `IntListDrawer`
|
||||
|
||||
List property drawer of type `int`. Inherits from `AtomDrawer<IntList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `FloatListDrawer`
|
||||
|
||||
List property drawer of type `float`. Inherits from `AtomDrawer<FloatList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Vector2ListDrawer`
|
||||
|
||||
List property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2List>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `<string, string>`. Inherits from `AtomEventEditor<string, string, StringEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
@ -554,6 +578,18 @@ Constant property drawer of type `bool`. Inherits from `AtomDrawer<BoolConstant>
|
||||
|
||||
---
|
||||
|
||||
## `StringReferenceAtomBaseVariableDictionaryDrawer`
|
||||
|
||||
SerializableDictionary property drawer for type <StringReference, AtomBaseVariable>. Inherits from `SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `SerializableDictionaryDrawer`3`
|
||||
|
||||
A custom property drawer for SerializableDictionary.
|
||||
|
||||
---
|
||||
|
||||
## `ColorVariableDrawer`
|
||||
|
||||
Variable property drawer of type `Color`. Inherits from `AtomDrawer<ColorVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
@ -614,6 +650,12 @@ Variable property drawer of type `string`. Inherits from `AtomDrawer<StringVaria
|
||||
|
||||
---
|
||||
|
||||
## `AtomBaseVariableListDrawer`
|
||||
|
||||
A custom property drawer for AtomBaseVariableList.
|
||||
|
||||
---
|
||||
|
||||
## `IntIntEventDrawer`
|
||||
|
||||
Event x 2 property drawer of type `int`. Inherits from `AtomDrawer<IntIntEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
@ -668,6 +710,12 @@ Event property drawer of type `string`. Inherits from `AtomDrawer<StringEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `AtomBaseVariableEventDrawer`
|
||||
|
||||
Event property drawer of type `AtomBaseVariable`. Inherits from `AtomDrawer<AtomBaseVariableEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Collider2DCollider2DEventDrawer`
|
||||
|
||||
Event x 2 property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DCollider2DEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
@ -739,3 +787,81 @@ Event property drawer of type `Color`. Inherits from `AtomDrawer<ColorEvent>`. O
|
||||
Event property drawer of type `bool`. Inherits from `AtomDrawer<BoolEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `FloatValueListDrawer`
|
||||
|
||||
Value List property drawer of type `float`. Inherits from `AtomDrawer<FloatValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `BoolValueListDrawer`
|
||||
|
||||
Value List property drawer of type `bool`. Inherits from `AtomDrawer<BoolValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `IntValueListDrawer`
|
||||
|
||||
Value List property drawer of type `int`. Inherits from `AtomDrawer<IntValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `ColorValueListDrawer`
|
||||
|
||||
Value List property drawer of type `Color`. Inherits from `AtomDrawer<ColorValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `StringValueListDrawer`
|
||||
|
||||
Value List property drawer of type `string`. Inherits from `AtomDrawer<StringValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Vector3ValueListDrawer`
|
||||
|
||||
Value List property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3ValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `GameObjectValueListDrawer`
|
||||
|
||||
Value List property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `ColliderValueListDrawer`
|
||||
|
||||
Value List property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Vector2ValueListDrawer`
|
||||
|
||||
Value List property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2ValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `Collider2DValueListDrawer`
|
||||
|
||||
Value List property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `ClampBaseEditor`
|
||||
|
||||
Base class for a custom editor for Clamp Functions.
|
||||
|
||||
---
|
||||
|
||||
## `ClampFloatEditor`
|
||||
|
||||
Custom editor for ClampFloat.
|
||||
|
||||
---
|
||||
|
||||
## `ClampIntEditor`
|
||||
|
||||
Custom editor for ClampInt.
|
||||
|
||||
---
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -19,9 +19,9 @@ Event property drawer of type `TouchUserInput`. Inherits from `AtomEventEditor<T
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputListDrawer`
|
||||
## `TouchUserInputTouchUserInputEventEditor`
|
||||
|
||||
List property drawer of type `TouchUserInput`. Inherits from `AtomDrawer<TouchUserInputList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `<TouchUserInput, TouchUserInput>`. Inherits from `AtomEventEditor<TouchUserInput, TouchUserInput, TouchUserInputEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
@ -48,3 +48,9 @@ Event x 2 property drawer of type `TouchUserInput`. Inherits from `AtomDrawer<To
|
||||
Event property drawer of type `TouchUserInput`. Inherits from `AtomDrawer<TouchUserInputEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputValueListDrawer`
|
||||
|
||||
Value List property drawer of type `TouchUserInput`. Inherits from `AtomDrawer<TouchUserInputValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
@ -142,15 +142,9 @@ Enum for different touch user input states.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputList`
|
||||
|
||||
List of type `TouchUserInput`. Inherits from `AtomList<TouchUserInput, TouchUserInputEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputReference`
|
||||
|
||||
Reference of type `TouchUserInput`. Inherits from `AtomReference<TouchUserInput, TouchUserInputVariable, TouchUserInputConstant>`.
|
||||
Reference of type `TouchUserInput`. Inherits from `EquatableAtomReference<TouchUserInput, TouchUserInputConstant, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
||||
@ -172,9 +166,27 @@ Constant of type `TouchUserInput`. Inherits from `AtomBaseVariable<TouchUserInpu
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputEventReference`
|
||||
|
||||
Event Reference of type `TouchUserInput`. Inherits from `AtomEventReference<TouchUserInput, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputTouchUserInputEventReference`
|
||||
|
||||
Event x 2 Reference of type `TouchUserInput`. Inherits from `AtomEventX2Reference<TouchUserInput, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputVariableInstancer`
|
||||
|
||||
Variable Instancer of type `TouchUserInput`. Inherits from `AtomVariableInstancer<TouchUserInputVariable, TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputVariable`
|
||||
|
||||
Variable of type `TouchUserInput`. Inherits from `EquatableAtomVariable<TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent>`.
|
||||
Variable of type `TouchUserInput`. Inherits from `EquatableAtomVariable<TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction>`.
|
||||
|
||||
---
|
||||
|
||||
@ -208,6 +220,12 @@ Action of type `TouchUserInput`. Inherits from `AtomAction<TouchUserInput>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputTouchUserInputFunction`
|
||||
|
||||
Function x 2 of type `TouchUserInput`. Inherits from `AtomFunction<TouchUserInput, TouchUserInput>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputTouchUserInputEvent`
|
||||
|
||||
Event x 2 of type `TouchUserInput`. Inherits from `AtomEvent<TouchUserInput, TouchUserInput>`.
|
||||
@ -222,18 +240,24 @@ Event of type `TouchUserInput`. Inherits from `AtomEvent<TouchUserInput>`.
|
||||
|
||||
## `TouchUserInputTouchUserInputListener`
|
||||
|
||||
Listener x 2 of type `TouchUserInput`. Inherits from `AtomListener<TouchUserInput, TouchUserInput, TouchUserInputTouchUserInputAction, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputUnityEvent>`.
|
||||
Listener x 2 of type `TouchUserInput`. Inherits from `AtomX2Listener<TouchUserInput, TouchUserInputTouchUserInputAction, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer, TouchUserInputTouchUserInputEventReference, TouchUserInputTouchUserInputUnityEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputListener`
|
||||
|
||||
Listener of type `TouchUserInput`. Inherits from `AtomListener<TouchUserInput, TouchUserInputAction, TouchUserInputEvent, TouchUserInputUnityEvent>`.
|
||||
Listener of type `TouchUserInput`. Inherits from `AtomListener<TouchUserInput, TouchUserInputAction, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer, TouchUserInputEventReference, TouchUserInputUnityEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `TouchUserInputValueList`
|
||||
|
||||
Value List of type `TouchUserInput`. Inherits from `AtomValueList<TouchUserInput, TouchUserInputEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `SetTouchUserInputVariableValue`
|
||||
|
||||
Set variable value Action of type `TouchUserInput`. Inherits from `SetVariableValue<TouchUserInput, TouchUserInputVariable, TouchUserInputConstant, TouchUserInputReference, TouchUserInputEvent, TouchUserInputTouchUserInputEvent>`.
|
||||
Set variable value Action of type `TouchUserInput`. Inherits from `SetVariableValue<TouchUserInput, TouchUserInputVariable, TouchUserInputConstant, TouchUserInputReference, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
@ -146,7 +146,7 @@ Listener
|
||||
|
||||
---
|
||||
|
||||
#### `_listenerWithGameObject`
|
||||
#### `_gameObjectListener`
|
||||
|
||||
Listener with GameObject reference
|
||||
|
||||
@ -162,11 +162,23 @@ Mono Hook for [`Start`](https://docs.unity3d.com/ScriptReference/MonoBehaviour.S
|
||||
|
||||
Base class for all `MonoHook`s of type `Void`.
|
||||
|
||||
### Variables
|
||||
|
||||
#### `_event`
|
||||
|
||||
The Event
|
||||
|
||||
---
|
||||
|
||||
## `VoidGameObjectAction`
|
||||
#### `_eventWithGameObjectReference`
|
||||
|
||||
Action x 2 of type `Void` and `GameObject`. Inherits from `AtomAction<Void, GameObject>`.
|
||||
Event including a GameObject reference.
|
||||
|
||||
---
|
||||
|
||||
#### `_selectGameObjectReference`
|
||||
|
||||
Selector function for the Event `EventWithGameObjectReference`. Makes it possible to for example select the parent GameObject and pass that a long to the `EventWithGameObjectReference`.
|
||||
|
||||
---
|
||||
|
||||
@ -181,15 +193,3 @@ Event x 2 of type `Collider` and `GameObject`. Inherits from `AtomEvent<Collider
|
||||
Event x 2 of type `Collider2D` and `GameObject`. Inherits from `AtomEvent<Collider2D, GameObject>`.
|
||||
|
||||
---
|
||||
|
||||
## `VoidGameObjectEvent`
|
||||
|
||||
Event x 2 of type `Void` and `GameObject`. Inherits from `AtomEvent<Void, GameObject>`.
|
||||
|
||||
---
|
||||
|
||||
## `VoidGameObjectListener`
|
||||
|
||||
Listener x 2 of type `Void` and `GameObject`. Inherits from `AtomListener<Void, GameObject, VoidGameObjectAction, VoidGameObjectEvent, VoidGameObjectUnityEvent>`.
|
||||
|
||||
---
|
||||
|
@ -25,9 +25,9 @@ Event property drawer of type `SceneField`. Inherits from `AtomEventEditor<Scene
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldListDrawer`
|
||||
## `SceneFieldSceneFieldEventEditor`
|
||||
|
||||
List property drawer of type `SceneField`. Inherits from `AtomDrawer<SceneFieldList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
Event property drawer of type `<SceneField, SceneField>`. Inherits from `AtomEventEditor<SceneField, SceneField, SceneFieldEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
@ -54,3 +54,9 @@ Event x 2 property drawer of type `SceneField`. Inherits from `AtomDrawer<SceneF
|
||||
Event property drawer of type `SceneField`. Inherits from `AtomDrawer<SceneFieldEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldValueListDrawer`
|
||||
|
||||
Value List property drawer of type `SceneField`. Inherits from `AtomDrawer<SceneFieldValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
|
||||
---
|
||||
|
@ -129,15 +129,9 @@ None equality operator.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldList`
|
||||
|
||||
List of type `SceneField`. Inherits from `AtomList<SceneField, SceneFieldEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldReference`
|
||||
|
||||
Reference of type `SceneField`. Inherits from `AtomReference<SceneField, SceneFieldVariable, SceneFieldConstant>`.
|
||||
Reference of type `SceneField`. Inherits from `EquatableAtomReference<SceneField, SceneFieldConstant, SceneFieldVariable, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction, SceneFieldVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
||||
@ -159,9 +153,27 @@ Constant of type `SceneField`. Inherits from `AtomBaseVariable<SceneField>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldEventReference`
|
||||
|
||||
Event Reference of type `SceneField`. Inherits from `AtomEventReference<SceneField, SceneFieldVariable, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction, SceneFieldVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldSceneFieldEventReference`
|
||||
|
||||
Event x 2 Reference of type `SceneField`. Inherits from `AtomEventX2Reference<SceneField, SceneFieldVariable, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction, SceneFieldVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldVariableInstancer`
|
||||
|
||||
Variable Instancer of type `SceneField`. Inherits from `AtomVariableInstancer<SceneFieldVariable, SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldVariable`
|
||||
|
||||
Variable of type `SceneField`. Inherits from `EquatableAtomVariable<SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent>`.
|
||||
Variable of type `SceneField`. Inherits from `EquatableAtomVariable<SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction>`.
|
||||
|
||||
---
|
||||
|
||||
@ -207,6 +219,12 @@ Action of type `SceneField`. Inherits from `AtomAction<SceneField>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldSceneFieldFunction`
|
||||
|
||||
Function x 2 of type `SceneField`. Inherits from `AtomFunction<SceneField, SceneField>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldEvent`
|
||||
|
||||
Event of type `SceneField`. Inherits from `AtomEvent<SceneField>`.
|
||||
@ -221,18 +239,24 @@ Event x 2 of type `SceneField`. Inherits from `AtomEvent<SceneField, SceneField>
|
||||
|
||||
## `SceneFieldListener`
|
||||
|
||||
Listener of type `SceneField`. Inherits from `AtomListener<SceneField, SceneFieldAction, SceneFieldEvent, SceneFieldUnityEvent>`.
|
||||
Listener of type `SceneField`. Inherits from `AtomListener<SceneField, SceneFieldAction, SceneFieldVariable, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction, SceneFieldVariableInstancer, SceneFieldEventReference, SceneFieldUnityEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldSceneFieldListener`
|
||||
|
||||
Listener x 2 of type `SceneField`. Inherits from `AtomListener<SceneField, SceneField, SceneFieldSceneFieldAction, SceneFieldSceneFieldEvent, SceneFieldSceneFieldUnityEvent>`.
|
||||
Listener x 2 of type `SceneField`. Inherits from `AtomX2Listener<SceneField, SceneFieldSceneFieldAction, SceneFieldVariable, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction, SceneFieldVariableInstancer, SceneFieldSceneFieldEventReference, SceneFieldSceneFieldUnityEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `SceneFieldValueList`
|
||||
|
||||
Value List of type `SceneField`. Inherits from `AtomValueList<SceneField, SceneFieldEvent>`.
|
||||
|
||||
---
|
||||
|
||||
## `SetSceneFieldVariableValue`
|
||||
|
||||
Set variable value Action of type `SceneField`. Inherits from `SetVariableValue<SceneField, SceneFieldVariable, SceneFieldConstant, SceneFieldReference, SceneFieldEvent, SceneFieldSceneFieldEvent>`.
|
||||
Set variable value Action of type `SceneField`. Inherits from `SetVariableValue<SceneField, SceneFieldVariable, SceneFieldConstant, SceneFieldReference, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldVariableInstancer>`.
|
||||
|
||||
---
|
||||
|
@ -34,7 +34,7 @@ Exactly the same as Variables, but can not be changed via script and therefore d
|
||||
|
||||
References are values that can be toggled between `Use Value`, `Use Constant`, `Use Variable` or `Use Variable Instancer` via the Unity Inspector. When a Reference is set to `Use Value` it functions exactly like a regular serialized variable in a MonoBehaviour script. However, when it is set to `Use Variable` or `Use Constant` it uses a Variable or a Constant. When it's set to `Use Variable Instancer` you can drag and drop a Variable Instancer of the correct type.
|
||||
|
||||
## Variable Instancer
|
||||
## Variable Instancers
|
||||
|
||||
This is a MonoBehaviour that takes a base Variable and makes an in memory copy of it `OnEnable`. This is particular useful when working with prefabs that is going to be instantiated at runtime. For example, when creating an enemy prefab you can use an `IntVariableInstancer` that creates an in memory copy of the enemy's health that you then can use in your scripts on the enemy prefab (using References). You can also give it a reference to a List or a Collection. If that is done the instancer will add the in memory Variable on Start to the List / Collection and then remove it OnDestroy.
|
||||
|
||||
|
@ -33,12 +33,12 @@ Add the following to your `manifest.json`:
|
||||
],
|
||||
"dependencies": {
|
||||
...
|
||||
"com.mambojambostudios.unity-atoms-core": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-mobile": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-mono-hooks": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-tags": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-scene-mgmt": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-ui": "2.1.1",
|
||||
"com.mambojambostudios.unity-atoms-core": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-mobile": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-mono-hooks": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-tags": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-scene-mgmt": "3.0.0",
|
||||
"com.mambojambostudios.unity-atoms-ui": "3.0.0",
|
||||
...
|
||||
}
|
||||
}
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms",
|
||||
"version": "2.1.1",
|
||||
"version": "3.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "com.mambojambostudios.unity-atoms",
|
||||
"displayName": "Unity Atoms",
|
||||
"version": "2.1.1",
|
||||
"version": "3.0.0",
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com/"
|
||||
},
|
||||
@ -9,7 +9,7 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/AdamRamberg/unity-atoms.git"
|
||||
},
|
||||
"unity": "2019.1",
|
||||
"unity": "2018.3",
|
||||
"description": "Tiny modular pieces utilizing the power of Scriptable Objects",
|
||||
"keywords": [
|
||||
"scriptable objects",
|
||||
|
@ -31,6 +31,23 @@ const run = async () => {
|
||||
});
|
||||
}
|
||||
|
||||
const assembliesFolder = path.join(
|
||||
process.cwd(),
|
||||
"Examples",
|
||||
"Library",
|
||||
"ScriptAssemblies"
|
||||
);
|
||||
const assemblies = fs
|
||||
.readdirSync(assembliesFolder)
|
||||
.filter(
|
||||
file =>
|
||||
file.endsWith(".dll") &&
|
||||
!file.startsWith("MamboJamboStudios.UnityAtoms")
|
||||
)
|
||||
.map(csproj => `"${path.join(assembliesFolder, csproj)}"`);
|
||||
|
||||
dlls = dlls.concat(assemblies);
|
||||
|
||||
// Compile code
|
||||
const apiXmlName = `api.xml`;
|
||||
const assemblyName = `Packages.dll`;
|
||||
@ -44,7 +61,9 @@ const run = async () => {
|
||||
)}" -t:library -out:"${path.join(
|
||||
process.cwd(),
|
||||
assemblyName
|
||||
)}" -r:${dlls.join(",")} -define:UNITY_2018_4_OR_NEWER,UNITY_2019_1_OR_NEWER`;
|
||||
)}" -r:${dlls.join(
|
||||
","
|
||||
)} -define:UNITY_2018_4_OR_NEWER,UNITY_2019_1_OR_NEWER,UNITY_2019_2_OR_NEWER,UNITY_2019_3_OR_NEWER`;
|
||||
try {
|
||||
const compileStdout = child_process.execSync(cmd);
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user