Bug -> Casting as dialogue unity interprets it as namespace rather than class

When trying to cast as Dialogue I receive the following error:
error CS0118: ‘Dialogue’ is a namespace but is used like a type

highlighting Dialogue unity is interpreting it as namespace Dialogue instead of the class Dialogue. How can I explicitly tell Unity to cast it as the scriptable object?

I would make the namespace be RPG.Dialogues not RPG.Dialogue. This will avoid any confusion between the two.

1 Like

Privacy & Terms