Page 1 of 1

Get Component From Demo Menu

Posted: Fri Jan 26, 2024 9:18 pm
by Kerple
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.

Re: Get Component From Demo Menu

Posted: Fri Jan 26, 2024 11:23 pm
by Tony Li
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.

Re: Get Component From Demo Menu

Posted: Sat Jan 27, 2024 12:34 am
by Kerple
Your suggestion worked thank you very much for you help!

Re: Get Component From Demo Menu

Posted: Sat Jan 27, 2024 10:15 am
by Tony Li
Glad to help!