Commit Graph

174 Commits

Author SHA1 Message Date
Oliver Biwer
77faff6637
asset based atoms generation (#187)
* Added Scriptable objects to define which types to be (re)generated

* added folder inspector to allow UnityAtoms specific actions and shortcuts to improve usability

* added command to regenerate all atom files

* storing AssemblyQualifiedName for generation
also showing value types that are not specifically marked as serializable

* fixed code style and cleanup
 - removed unused imports
 - removed commented-out code
2020-11-06 22:07:21 +01:00
Oliver Biwer
fa97e23006 fixing #200 (UnregisterAll for AtomEventBase)
UnregisterAll did not unregister for listeners of OnEventNoValue.
2020-10-07 17:46:19 +00:00
Mehmet Hazar Artuner
5a0a29f015
Add workaround for "Enter Play Mode" feature to enable initial values (#182)
* Add workaround for Unity's "Enter Play Mode" feature to enable initial values

* exclude UnityEditor from build

* use HashSet to store AtomVariable instances
2020-09-06 11:36:24 +02:00
Oliver Biwer
d6688c2b59
#154 adds a searchable menu for faster atom creation. (#186)
* #154 adds a searchable menu for faster atom creation. default hotkey is ALT+1

* better name representation

* added missing meta file

* #154 - Minor nitpick fixes

Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2020-08-23 12:55:06 +02:00
Adam Ramberg
56803a8aae 🧞‍♀️ v4.3.0 2020-08-04 01:58:16 +02:00
IceTrooper
47286f40a9
Creating new atom in current directory improvement (#184)
* small improvement for creating new atoms in inspector window

* fixed getting directory path instead of full file path
2020-08-04 01:09:52 +02:00
Adam Ramberg
4a8f9ba571 #180 - Minor style fix 2020-08-04 01:04:04 +02:00
Gustavo Guimaraes
cf567e877d
Added StartCleared to ValueList (#180)
* Added StartCleared to ValueLists

closes #175

* Update BaseAtomValueList.cs

* Made StartCleared Protected
2020-08-04 01:02:17 +02:00
Adam Ramberg
0540add7b8 #179 - Fixes to AtomDrawer + FSM editor 2020-08-04 00:59:22 +02:00
Gustavo Guimaraes
cd8cd63ec0
Default Value For Changed and ChangedWithHistory (#179)
* Changed now is created even if null

* Added changedwithhistory

* Removed initial implementation
2020-08-04 00:55:26 +02:00
Michael Liu
e427ea973e
Fix Sub FSM Value Set issue (#178) 2020-07-13 07:58:11 +02:00
jmacgill
3140feab42
Generator creates compilable code with type specific modifications (#169)
* Make Examples path check OS agnostic.

* Examples path check OS agnostic.

* Update Runtime.cs

* Re-generate and patch back in type specific changes

* Add missing UnityEngine using.

* Marked as not sealed

* Support the current value type as a conditional.

* Nested if blocks

* Use next char instead of next linefeed.

* Remove debug lines.

* Keep Atom Base Variable sepecfic code.

* Fix position of endif

* Add Raise for void type

* Add void and FSM specific logic

* Add is numeric conditional

* Add more type specific logic

* Add is Vector to generator.

* Add type specific logic

* Add collider type

* Add color specific logic

* Working on whitespace diffs

* Working on whitespace diffs

* remove unused test assembly

* removed example nested if

* test comment removed after regen

* missing ValueEquals

* missing ValueEquals on colliders

* missing color speciifc code.

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* remove temp debug

* Generated events now follows editoconfig. + Inline conditionals now supports white spaces.

Co-authored-by: jrmacgill <jmacgill@gmail.com>
Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2020-07-12 08:18:51 +02:00
Gustavo Guimaraes
1e2ea61044
Instancer improvements (#172)
* Added Raise method and default base event for event instancers

* Added default value for Variable when base is null

* Added Event Instancer Raise editor
2020-07-01 08:32:07 +02:00
Oliver Biwer
3ae6200b8a
Update AtomBaseReferenceDrawer.cs (#174)
* Update AtomBaseReferenceDrawer.cs

* Update AtomBaseReferenceDrawer.cs
2020-07-01 08:23:41 +02:00
jmacgill
3bdd7bbef2
Make IsUnityAtomsRepo OS agnostic (#168)
* Make Examples path check OS agnostic.

Co-authored-by: jrmacgill <jmacgill@gmail.com>
2020-06-24 18:15:28 +02:00
Adam Ramberg
9dd7f918a8 🐞v4.2.1 2020-06-22 09:24:37 +02:00
Adam Ramberg
46a526c666 - Fixed clear button handler for StackTraces
- Fixed and rearranged StackTraces compiler flags
2020-06-22 09:13:20 +02:00
Adam Ramberg
e3ed5b58fc Hacks to get docs generator working 2020-06-20 09:32:51 +02:00
Adam Ramberg
49f9ff3f66 🐝 v4.2.0 2020-06-20 01:32:56 +02:00
Adam Ramberg
4278f71c9e #164 - Does not work in Unity 2018.3 2020-06-20 00:49:40 +02:00
Adam Ramberg
f855767c8e Changelog + assembly fixes 2020-06-20 00:45:58 +02:00
Adam Ramberg
70f8130797
Debug events by displaying stack traces for events (#159)
* Add stack trace toggled via user prefs

* Add docs regarding preferences

* Rename color getter functions

* Fix minior order of execution bug

* Use GUID + improved styling of detailed stack view

* - Changed the AddStackTrace method to be conditional (from one of your initial suggestions).
- Removed the implicit conversion operator in StackTraceEntry and is instead using ToString explicitly when needed.
- Improved implementation of GetFirstLine
- Simplified Equals implementation of the StackTraceEntry class
2020-06-06 22:19:07 +02:00
AdamRamberg
1e8abc6ad6 #160 - Hook up OnFixedUpdate handler 2020-05-21 17:53:27 +02:00
AdamRamberg
27959b9dd4 Fix bug where usage popup sometimes were hidden 2020-05-16 17:30:26 +02:00
Adam Ramberg
b2a838a18f
#132 - Add GetEvent and SetEvent functions to AtomReference (#158) 2020-05-12 18:19:45 +02:00
Adam Ramberg
634b42adcf
#131 - Added forceEvent parameter for SetValue function on AtomVariable (#157) 2020-05-12 17:56:01 +02:00
Bastien Guyl
4aa1f4a4d7
Fixing drawer for generated reference of complex struct type (#155)
* Adding proposals to fix #153

FIx custom reference doesn't appear properly

* Fix #153

Fix custom reference doesn't appear properly

* Fix #153

Fix custom reference doesn't appear properly

Co-authored-by: Bastien Guyl <bguyl@smart-tale.com>
2020-05-11 20:07:56 +02:00
AdamRamberg
849ae95b58 Add GetParent / GetValue extenstions for SerializedProperty 2020-05-10 16:27:46 +02:00
Adam Ramberg
5dfc5fef7c
Fix code generation bug (#147) 2020-05-03 23:12:37 +02:00
Moh Narimani
f3bf70b64c
Removed duplicate check before adding an item to AtomValueList (#145) 2020-05-03 22:44:07 +02:00
Oliver Biwer
4a802d0c27
Changes in GetEvent implementation to allow inheritance (#140) 2020-05-03 07:45:08 +02:00
Ignacio Ruiz
3666304b55
Added inspector toggle for triggering Changed and ChangedWithHistory on OnEnable (#126)
* Booleans to decide if OnChanged Events are triggered on Variable's OnEnable were added

* Variable's editor was updated to show both booleans

* Docs updated with new variables

* Changelog update

* Change variable visibility to private and add explicit default value

Co-authored-by: Ignacio Ruiz <iruizm@hiberus.com>
2020-04-26 19:57:55 +02:00
IceTrooper
bec125f86d
changed from Multiline to TextArea attribute (#128) 2020-04-24 06:40:54 +02:00
Adam Ramberg
4176aa4392 💜 v4.1.0 2020-04-03 16:01:05 +02:00
Adam Ramberg
55d96c2250
#122 Add Event Refs for Collections and Lists (#123) 2020-04-03 15:45:08 +02:00
Enderlook
5a2816e3ae
Fix typos (#120) 2020-03-30 17:07:10 +02:00
Adam Ramberg
3c26513229 🦹‍♂️ v4.0.2 2020-03-22 01:29:45 +01:00
Adam Ramberg
cb5f702df6 Fixes to issues in v4.0.1 2020-03-22 01:22:08 +01:00
Adam Ramberg
342d5331e2 🦸‍♂️ v4.0.1 2020-03-22 00:51:37 +01:00
Adam Ramberg
5ec125fa49 Add editor folder to FSM pkg 2020-03-22 00:47:24 +01:00
Adam Ramberg
8c6abe18a3 Merge branch 'v4' into canary 2020-03-22 00:24:33 +01:00
Adam Ramberg
f09e466030 FSM docs v1 2020-03-21 23:52:11 +01:00
Adam Ramberg
0e8f13b369 FSM docs 2020-03-21 22:59:30 +01:00
Adam Ramberg
4ba6beee59 Added some more docs 2020-03-21 22:45:39 +01:00
Adam Ramberg
4ad596dcd2 Rename functions correctly 2020-03-21 22:17:59 +01:00
Adam Ramberg
9fd64a12f3 Move AtomListAttribute to core 2020-03-21 21:58:41 +01:00
Adam Ramberg
24831f5927 Docs added 2020-03-21 21:48:05 +01:00
Adam Ramberg
698c18dbe7 Fix Variable with class type issues 2020-03-20 00:48:23 +01:00
Adam Ramberg
2eb4cedf80 Rename example scene 2020-03-19 22:42:34 +01:00
Adam Ramberg
4b2f83e830 Rearranging scenes 2020-03-19 22:29:42 +01:00