BD Pro sharedVariable for abstract, interface

mentum

New member
Short summary: Abstract classes are not listed in variables and cannot be registered!


I’m looking to move from an old behavior designer.

I want to use the interface or abstract class as SharedVariable for variables.

The member variable of the node could be declared SharedVariable.

However, cannot select a value from a variable preregistered in a graph range. No interface or abstract class appears in the list.

As an expedient, I temporarily changed the abstract class to a specific class and then registered it to make it an abstract class again, and I was able to forcefully register the list.

Should I make a rapper class? Is there a right example for this?
 

Attachments

  • temp.png
    temp.png
    76.8 KB · Views: 7
Your workaround for right makes sense. I'll look into exposing interfaces and abstract classes within the variable list.
 
I have this fixed. It turns out that interfaces were always able to be selected, but abstract classes weren't shown. I'll send you a PM with the fix.

For any classes/interfaces that do not implement MonoBehaviour you need to make sure you add the type to the Unit Options found under Tools -> Opsive -> Unit Options.
 
Wow, I truly appreciate you even going as far as building it.

I’d like to add a final note.
As a user migrating from the previous version, there were moments of confusion due to uncertainties about whether certain features had been removed, changed, or were simply yet to be implemented.

In particular, I was quite surprised not to find the properties RestartWhenComplete and ResetValuesOnRestart.

Since this is still an early version, I expect documentation to be available once it stabilizes, and I look forward to that.

Wishing you a great day!
 
Back
Top