Reference a class from another folder
Posted: Sat Jun 06, 2020 1:37 am
Hi.
I know this question is more related to c# but I've been slamming my head against the wall for a good amount of time by now, so I come here for some guidance.
I have a script called "Assets/Scripts/x.cs" that I want to use in a custom sequence command, which is in Plugins/Pixel Crushers/Dialogue System/Templates/SequencerCommandX.cs.
I'm trying to have a reference to my own script from the Sequencer command.
I tried using a namespace in my x.cs file and also using global namespace (:: operator) from the sequencer command but I can't see it.
What do I need to do this? By now the only thing that comes into my mind is copying my script to the Plugins folder, but I don't want to duplicate my files.
Any help is appreciated. Thanks
I know this question is more related to c# but I've been slamming my head against the wall for a good amount of time by now, so I come here for some guidance.
I have a script called "Assets/Scripts/x.cs" that I want to use in a custom sequence command, which is in Plugins/Pixel Crushers/Dialogue System/Templates/SequencerCommandX.cs.
I'm trying to have a reference to my own script from the Sequencer command.
I tried using a namespace in my x.cs file and also using global namespace (:: operator) from the sequencer command but I can't see it.
What do I need to do this? By now the only thing that comes into my mind is copying my script to the Plugins folder, but I don't want to duplicate my files.
Any help is appreciated. Thanks