Hi Chris,
I have an updated skinsetter script that I need to call skinsetter.EnableCandle() in a unity event
and skinsetter.DisableCandle() in a unity event, when I want to enable/disable a particular Spine animation for my player. However, I have tried following:
If you have a public function in a custom script that you want to call, you can do so with either the Object: Send message Action, or the Object: Call event Action
However, neither are working. See videos and script here:
https://www.dropbox.com/sh/arq4c29mjx48qr8/AAC1jl_JsTFLOl9LUx9F6F4Za?dl=0
Would you either be able to:
A - tell me how best to call this easily?
B - preferably help me make this into s custom action script please? (I have tried the tutorial but I am getting a bit stuck)
THANKS
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Both the Object: Send message and Object: Call event Actions require a GameObject to work - you can't assign the script asset file directly. You need to assign the GameObject that has the SkinSetter component on it.
You're almost ther with the second video and the Object: Send message Action. You just need to type the function name (i.e. EnableCandle) into its Message to send box.
Got it thanks!