Reply To: Errors trying to restore blackboard variables (using object pooling)

Forums 💬 NodeCanvas ⚙️ Support Errors trying to restore blackboard variables (using object pooling) Reply To: Errors trying to restore blackboard variables (using object pooling)

#15648
ccfoo242
Participant

    Stepping through with the debugger, setMethod is null here (Variable.cs) line 280:

    if ( prop.CanWrite ) {
    try { setter = setMethod.RTCreateDelegate<Action<T>>(instance); } //JIT
    catch { setter = (o) => { setMethod.Invoke(instance, ReflectionTools.SingleTempArgsArray(o)); }; } //AOT
    if ( callSetter ) { setter(_value); }
    } else {
    setter = (o) => { Logger.LogError(string.Format(“You tried to Set a Property Bound Variable ‘{0}’, but the Bound Property ‘{1}’ is Read Only!”, name, _propertyPath), LogTag.VARIABLE, go); };
    }