+5
Under Review

Implement On Variable Changed

Reality.Stop() 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 3 1 duplicate

The totally awesome Community Addons project developed an On Variable Changed unit:


which acts logically as:



to which you said:

But your On Variable Changed event should deeeeeefinitely be built in! Could you post a feature request?

The community implementation is here:

https://github.com/RealityStop/Bolt.Addons.Community/blob/master/src/Fundamentals/Units/Variables/OnVariableChanged.cs

with additionally relevant files at:

https://github.com/RealityStop/Bolt.Addons.Community/blob/master/src/Fundamentals/Editor/UnitOptions/OnVariableChangedOption.cs

and

https://github.com/RealityStop/Bolt.Addons.Community/blob/master/src/Fundamentals/Editor/Descriptors/OnVariableChangedDescriptor.cs

aaaand

https://github.com/RealityStop/Bolt.Addons.Community/blob/master/src/Fundamentals/Editor/Widgets/OnVariableChangedWidget.cs


Though some of this you will notice is a direct clone of your own source code, which I can't use as it is target at the base class UnifiedVariableNode (which I can't use for the event) as opposed to the interface (which I could use).

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Duplicates 1

Keep in mind, those were two different nodes that you independently said should be added on two different occasions!  :-D

Under Review

I know, but I'll probably be implementing them at once so I'm merging the request. :)