Commit Graph

266 Commits

Author SHA1 Message Date
Adam Ramberg
0a1fea485d
Fix variable equality issues (#111) 2020-02-23 02:22:39 +01:00
Low Jiahao
9a9b72f052
Reactivate Generator function in Unity 2018.4. (#106)
Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2020-02-19 01:25:30 +01:00
Adam Ramberg
ed856beb11
Fix indentation bug in variable drawer (#109) 2020-02-18 22:20:29 +01:00
Adam Ramberg
630d45bceb
IsUnityAtomsRepo should never be settable (#108) 2020-02-16 21:10:45 +01:00
Adam Ramberg
9b027e2308
Added pre change transformers to Variables + Clamp Int / Float (#93)
* Added pre change transformers to Variable + Clamp Value Function (first pre change transformer implementation)
- Added a list of pre change transformers to AtomVariable
- Added docs
- Added two AtomFunctions - ClampInt and ClampFloat
- Added custom editors for ClampInt and ClampFloat
- AtomFunction<T, T> is not part of the generator
- Regenerated all the Atoms

* - Created a base class for the editor for ClampFloat and ClampInt. Apparently it is not allowed to have multiple CustomEditor attributes defined for the same class. To implement this I also created an interface called `IIsValid` (for casting purposes in the editor).
- Initialize `PreChangeTransformers ` at declaration and removed initialization `OnEnable`
- Moved call to `RunPreChangeTransformers ` from `OnEnable` to `OnValidate`. Running it 2 times, once for initialValue and once for value since value can be changed at runtime via editor.
- Made the variable PreChangeTransformers private and created a property instead in order to make it impossible to overwrite the list with `null` from the outside.
- Moved `ClampInt` and `ClampFloat` in the `CreateAssetMenu` for `Unity Atoms/Functions/Transformers`
2020-02-16 12:44:46 +01:00
Oliver Biwer
1772b75ec5
Update AtomVariable.cs 2020-02-10 15:25:07 +01:00
Adam Ramberg
0916c0ae96 Fix screenshots method naming mistake 2020-01-28 23:26:53 +01:00
Adam Ramberg
90a505bbd3 v2.1.1 🤖 2020-01-23 23:42:09 +01:00
Adam Ramberg
af6cd06fb7 Update example project to Unity 2019.2.17f1 2020-01-23 22:25:20 +01:00
Lucas Ribeiro
82e78f51d3 Fix Remove Tag from AtomTags and Fix Remove Tag Test (#102) 2020-01-23 21:09:27 +01:00
Favo Yang
a3db8f13e9 docs: add installation options and badges for OpenUPM (#100)
* docs: add installation options and badges

* Minor adjustments to headers in README + added installation instructions of OpenUPM to website

Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2020-01-23 20:48:42 +01:00
Low Jiahao
d619146076 Unity v2018.4 Support (#98)
* - Fixed MonoHooks asmdef reference to Core asmdef was broken.
- Fixed dependancy issue for Package Manager.
- Removed Generator function in version 2018.4.

* Updated to include 2018.4 define directive.
2020-01-23 20:01:31 +01:00
AdamRamberg
b51de335e0 v2.1.0 🚀 2019-11-28 19:35:59 +01:00
IceTrooper
be6a479bc1 #84 parameterless atom listener (#86)
* added base class for AtomAction; modified VoidAction; added Register/UnregisterListener to non-generic AtomEvent; added parameterless AtomListener; small polishing

* removed EditorIcon from AtomAction; fixed misspelled word in AtomEvent
2019-11-26 20:12:54 +01:00
AdamRamberg
e0fa81badd New feature -> New features 2019-11-15 06:36:35 +01:00
Adam Ramberg
cc63d654b3
Name OnTriggerHook class properly. (#91)
* Bux fix - name OnTriggerHook class properly.

* Add entry to CHANGELOG
2019-11-15 06:33:23 +01:00
AdamRamberg
6c70a40961 Add items to the CHANGELOG 2019-11-14 22:57:22 +01:00
Oliver Biwer
a5641f6514 Variable and Constant Drawers show a preview value (#89)
* Drawers of Variables and Constants show value field

* #89 Adjust preview width for Vector2 and Vector3
2019-11-14 22:46:58 +01:00
Oliver Biwer
1dd2baeaec Better user guidance for working with AtomVariables (#70)
* #69 added custom editor for Variable Types, to guide the usage flow and reduce errors.

* allows unlocking of initialvalue in playmode

* adjustments to Variable Inspector

* Generator now works with all kinds of setups. just select the Packages folder when calling RegenerateAll.
Used this to regenerate the CustomEditors

* supports now structs

* Added RaiseButtons in VariableEditor. #72
Adding simple logging helper on listeners, for fast debugging.

* Call `serializedObject.Update();` before `OnInspectorGUI` in the editor script in order to update old value when changing value.
Show children for PropertyFields for initial and old value.
Some minor refactoring - renaming variables
Clean up in `RegenereateAllAtoms`
Use `OnEnable` instead of `OnAfterDeserialize` when setting inital value for variable. `OnAfterDeserialize` was causing major issues with the custom editor, eg. it did run when focusing a Variable and showing the inspector, basically making it worthless to change or even inspect the Variable at runtime. `OnEnable` is only called ones when the ScriptableObject is loaded in runtime, which is what we really want. This has been tested running in the editor and in builds.
Add missing editors scripts `TouchUserInputVariableEditor`and `SceneFieldVariableEditor`
2019-11-14 12:59:11 +01:00
Oliver Biwer
1c8964e30f
Merge pull request #88 from IceTrooper/#87-fixed-bug-with-multiline-constant-value-in-atomreference
Fix #87: AtomReference Drawer is always 1 line, even if the object needs more
2019-11-13 22:16:56 +01:00
IceTrooper
23a8873462 Changed AddComponentMenu names for Listeners/Hooks (#84)
* changed AddComponentMenu names for Listeners

* renamed AddComponentMenu Listeners names in other packages

* renamed AddComponentMenu for hooks

* renamed double Listeners to "x 2" convention
2019-11-13 08:59:39 +01:00
Ice_trooper
789c39d39c #87 bug fixed 2019-11-12 00:03:12 +01:00
AdamRamberg
acf901eb6d Merge branch 'canary' 2019-11-11 23:31:41 +01:00
AdamRamberg
e7fe472717 Updated CHANGELOG.md 2019-11-11 22:33:55 +01:00
Oliver Biwer
e2faf2e3d6
Merge pull request #78 from Saso222/canary
Setter to AtomReference's Value was added
2019-11-11 21:02:43 +01:00
Oliver Biwer
c4a84838b4
Update AtomReference.cs
small change to be more future-proof.
 - when the Usage-Enum is extended this will not silently do nothing
2019-11-11 21:01:10 +01:00
Adam Ramberg
a35847eae3
Merge pull request #73 from AdamRamberg/add-discord-link-to-docs
Add discord link to docs
2019-11-11 08:04:44 +01:00
Ignacio Ruiz
3047512a62 Setter to AtomReference's Value was added in order to set the value depending on _usage 2019-11-09 23:08:40 +01:00
AdamRamberg
69a698bd66 #59 - Add discord link to docs 2019-11-03 17:50:45 +01:00
AdamRamberg
a45918ee43 Small adjustment to PUBLISHING.md 2019-10-24 08:31:52 +02:00
AdamRamberg
11b870a2b1 Merge branch 'master' of https://github.com/AdamRamberg/unity-atoms 2019-10-24 08:23:09 +02:00
AdamRamberg
babb691792 V2.0.0 🎉 2019-10-24 08:15:45 +02:00
AdamRamberg
a69e5c2f05 Fix broken scenes 2019-10-24 07:59:10 +02:00
AdamRamberg
b8c3dc668f #68 - render default drawer when multi editing 2019-10-22 22:11:21 +02:00
AdamRamberg
9cb9a0de20 #68 Temporarily dissalow multiobject editing 2019-10-22 08:03:14 +02:00
AdamRamberg
40e1af7ffe Expose get property InitialValue for Variables 2019-10-20 23:21:16 +02:00
AdamRamberg
577f83d612 Regenerate docs for Tags 2019-10-20 23:20:13 +02:00
AdamRamberg
d187ce32fc Add missing part to "Quick start" page 2019-10-20 22:25:14 +02:00
AdamRamberg
0ad40a67d4 #65 - Fix indent and ui state issues of drawer 2019-10-20 21:48:52 +02:00
AdamRamberg
a496c19bf7 Set default values to remove MH warnings 2019-10-20 21:16:07 +02:00
AdamRamberg
551aee6acc Add missing MonoHooks folder meta 2019-10-20 15:06:08 +02:00
AdamRamberg
1a9434de8e Add release step 2019-10-18 17:38:24 +02:00
AdamRamberg
ba822d85d1 Small README.md style fix 2019-10-18 17:37:12 +02:00
AdamRamberg
cd90f0e667 Remove all FormerlySerializedAs attributes 2019-10-18 17:36:10 +02:00
AdamRamberg
53a5d0a6c8 Publish 2.0.0-beta.1 2019-10-17 20:43:14 +02:00
AdamRamberg
58728e182c Docs for publishing a new unity atoms version 2019-10-17 13:27:13 +02:00
AdamRamberg
a4334bc3d0 Update README with maintainers 2019-10-17 13:02:04 +02:00
AdamRamberg
d5e7303483 UATags -> AtomTags 2019-10-17 12:57:00 +02:00
AdamRamberg
6b6cdf62ee Merge branch 'master' into canary 2019-10-16 23:21:36 +02:00
Adam Ramberg
c705760aa2 Add initial issue templates 2019-10-16 23:19:08 +02:00