I really donât understand what I am doing wrong anymore.
Iâve transitioned out of using Bolt and am using only the built in Visual Scripting within 2021.1.12f1. I re-created everything in a new file, using the Mobile 3D template (versus just the normal 3D template from before).
I created a single Script Machine / Macro for the âPlayerâ called âPlayerScriptâ. Within that are all of the actions which use individual Events, tied to button clicks. All of this previously worked, and aside from installing PUN/Photon in a prior version of this file (which is not in this version of this file), I have made no changes to the Unity software or its components (or to the computer itself, outside of a normal Windows update).
So the problem persists - On the âPlayer Objectâ, which is just a blank cube right now, I added a Script Machine component. To that, in the Graph section, I drag the script object named PlayerScript into the field. It immediately shows an Event name (in this case âUseâ) versus is showing the PlayerScript file name.
None of the button calls work, because the script itself (PlayerScript) isnât being called, it is looking for a script named âUseâ, which doesnât actually exist, it is only the name of an event WITHIN the PlayerScript.
Iâve uninstalled all other versions of Unity, aside from 2021.
Iâm getting pretty frustrated and really donât want to go down the path of uninstalling all of Unity, reinstalling it, and rebuilding for a 6th time, the same code in VS, just to face this specific issue again. I think it is something on my end, something I am doing wrong because I donât know any better - but if this is a technical issue, Iâd love some advise.
(Additionally, the âUseâ name that appears incorrectly⌠if I change the name of the PlayerScript, to PlayerScript2, that PlayerScript2 name automatically appears in place of the incorrect âUseâ name that was there. Changing Script2 to Script, also automatically updates. Clicking Play, reverts the correct name, BACK to âUseâ.)