Comments (7)
@icaro56 I added the option to use a Constant in Atom References in commit 299dc19. Use the latest canary version if you want to use it.
from unity-atoms.
it is such that you can provide your level designers the oportunity to put a fix number in there without the need of creating an asset.
note: IntConstant derives from AtomBaseVariable also IntVariable does so. this means: you can put a AtomConstant into the AtomVariable option of an AtomReference
The architecture is based on this talk: https://www.youtube.com/watch?v=raQ3iHhE_Kk
from unity-atoms.
Ok, thank you by explanation.
from unity-atoms.
But by some reason the StringConstant is not aceptable on StringVariable field when I use the StringReference
from unity-atoms.
Ah okay i see.
References use "hardcoded" the variable like here: public class StringReference : ScriptableObjectReference<string, StringVariable, StringEvent, StringStringEvent> { }
"StringVariable" in the generic argument. I think this "should" be ScriptableObjectVariableBase<string>
1 but I'm unsure whether or not this would still be serializable.
I'll try to test it this evening, but maybe you're faster than I am
[1]: because AtomVariable and AtomConstant have the same common ancestor (VariableBase), this would be needed to use both in there
from unity-atoms.
I understand. Thank you. Your plugin is fine! I am using the canary version. May the force be with you!
from unity-atoms.
"StringVariable" in the generic argument. I think this "should" be ScriptableObjectVariableBase 1 but I'm unsure whether or not this would still be serializable.
okay, you can't use a generic argument at this position - it will not serialize anymore.
thats a bummer .
we could add a third option to reference to also allow a AtomConstants option.
when 2020.1 hits this can be restructured altogether with SerializeReference
from unity-atoms.
Related Issues (20)
- [FEATURE] Upgrading Documentation to Docusaurus 2.x and adding a search plugin
- [BUG] NullReferenceException in HandlePlayModeStateChange HOT 1
- [BUG] AtomValueList keeps runtime modifications HOT 1
- [BUG] AtomValueList not compatible with disabled domain reload HOT 1
- [FEATURE] Improve Inspector legibility
- [BUG] FiniteStateMachine not firing events anymore HOT 2
- A number of issues with AtomLists/AtomCollections HOT 2
- [FEATURE] More public get-properties for fields HOT 2
- [QUESTION] Subpackages documentation HOT 2
- [FEATURE] Variable Resetter shouldn't trigger due to script hot reload
- [FEATURE] Clear "AtomList" and "AtomCollection" OnEnable
- [FEATURE] SceneField for Addressable Scenes
- [BUG] StackTraces allocate garbage when DebugMode = false HOT 1
- [BUG] QuaternionReferenceDrawer Rendering issue HOT 1
- [BUG] CustomStruct Reference Drawer Rendering issue
- [FEATURE] AtomTags - Update TagInstances in Editor
- [FEATURE] Auto drag and drop atom references through inspector without the need to manually switch usage type
- [FEATURE] AtomBaseEventReference to have `Raise` methods inside
- [FEATURE] VFX PropertyBinder HOT 1
- [BUG] Recompiling during play mode resets all variables HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-atoms.