0
Fixed

CAD object does not exit in QuickToggle.cs Error

Andrew Kibor 1 month ago in Game4Automation Starter and Professional updated 1 month ago 4

So I just updated to Game for Automation Starter 2020.09 while working on a project and unfortunately, I seem to be getting the following related errors that cannot allow me to proceed at least in Play Mode:

  • "Assets\game4automation\private\QuickToggle.cs(418,26): error CS0246: The type or namespace name 'CAD' could not be found (are you missing a using directive or an assembly reference?)"
  • "Assets\game4automation\private\QuickToggle.cs(480,36): error CS0103: The name 'CADStatus' does not exist in the current context"

I am using Unity 2020.3.17f1. I've even created a new project and ran the DemoGame4Automation scene but still have the same error. I'm relatively new to g4a so maybe there maybe something I'm missing however as I've already implied, the pretty much everything was working before the update.

Answer

Answer
Fixed

It seems that in your Installation Scripting Define Symbols for Professional are on. I don't know why that happened. You need to deletet that and it should work without changing the code. We are updating today the starter to a new version - I found a bug - so please upgrade to 2020.10 as soon as it is available - in about 2-3h.

I think the code assumes I am using the G4A pro which I am not. I have commented out all the code containing instances of the class and works for now.

Answer
Fixed

It seems that in your Installation Scripting Define Symbols for Professional are on. I don't know why that happened. You need to deletet that and it should work without changing the code. We are updating today the starter to a new version - I found a bug - so please upgrade to 2020.10 as soon as it is available - in about 2-3h.

Great. That's a better fix, The update is also working well so far. Thanks.

Sorry my bad, the update still comes with the GAME4AUTOMATION_PROFESSIONAL symbol added.Although the fix still works.