ScriptableObject-Architecture
ScriptableObject-Architecture copied to clipboard
Readonly property is never showing in Inspector for Variable References
I believe there is a bug with VariableReferences where the Readonly property never shows when appropriate. The code in BaseVariableEditor says to return if the variable "IsClampable". I believe this should be changed to "_isClamped.boolValue".
I believe the intention is that some instances of an variable (say an IntVar) can be readonly, and some other instances can be set as not readonly. The current behaviour is that if something is clampable (like an IntVar), then it cannot be readonly, instead of if the variable is currently set to be clamped.
So currently, IntVars cannot be readonly, and only classes like Vector2Var can be readonly.