ScriptableObject-Architecture icon indicating copy to clipboard operation
ScriptableObject-Architecture copied to clipboard

[Feature Request] Remove 'seal' from XXXVariable to enable inheritance and add expression

Open abcjjy opened this issue 3 years ago • 1 comments

Expression SO can inherit variables and make SOA more powerful and flexiable.

For example

class ComparisonExpression : BoolVariable
{
  public BaseVariable var1;
  public CompareOperator op;
  public BaseVariable var2;

  public override bool Value
  {
    get {
    // compare var1 and var2
    }
  }
}

abcjjy avatar Jan 19 '22 00:01 abcjjy

I agree. This platform is interesting for its hackability, I don't see the point in sealed classes here.

lgarczyn avatar Jan 31 '23 11:01 lgarczyn