Get Component From Demo Menu
Get Component From Demo Menu
I'm currently working on adjusting the Demo Menu for my game. I am trying to kill my player from the menu. I need my menu to access another script I wrote called PlayerHealthSystem.cs, However because of my file system I can't use a get component. Should I use a wrapper class or something else I am looking for suggestions. I attached two screenshots to show off the line and the error I am getting.
- Attachments
-
- The Line with the error code I am getting
- image_2024-01-26_181626691.png (21.14 KiB) Viewed 656 times
-
- A better image of the full line
- image_2024-01-26_181607688.png (96.88 KiB) Viewed 656 times
Re: Get Component From Demo Menu
Hi,
Scripts in the Plugins folder can't see scripts that are outside of Plugins.
Duplicate DemoMenu.cs. Then rename the duplicate and move it into your own scripts folder. Then you can customize it to reference your scripts.
Scripts in the Plugins folder can't see scripts that are outside of Plugins.
Duplicate DemoMenu.cs. Then rename the duplicate and move it into your own scripts folder. Then you can customize it to reference your scripts.
Re: Get Component From Demo Menu
Your suggestion worked thank you very much for you help!
Re: Get Component From Demo Menu
Glad to help!