The Question:
Hey guys - I've come to a complete standstill when implementing Signals in this Zelda for Unity project. My code for Signal & SignalListener are exactly as they should be with no errors, but I can't seem to drag my "Signal" over to my Signallistener. Any ideas why? Using unity 2019.1"Or.
"im doing the signal system but seems like it doesnt recognize the object as an scriptable object, what can cause this?"
The Answer:
Unity 2019 already has a Signal, your one and the Unity one are being confused with each other. There are two fixes.
1. Don't use Signal as the name of your scritpable object, use Notification or TaftSignal for example instead!
2. You can create an object called signal but place it in a folder in the asset menu, that way Unity will treat it as a separate entity.
in the Signal.cs file modify the CreateAssetMenu directive to read as follows.
No comments:
Post a Comment