Search found 2 matches

by talesworth
Fri Aug 02, 2024 2:21 pm
Forum: Dialogue System for Unity
Topic: Selector > OnSelectedUsable
Replies: 3
Views: 491

Re: Selector > OnSelectedUsable

In the inspector, it is setup like this: https://i.imgur.com/0OL9BYn.png And here is the function: https://i.imgur.com/Uo4eT9t.png The error thrown is: ArgumentException: Object of type 'UnityEngine.Object' cannot be converted to type 'PixelCrushers.DialogueSystem.Usable'. I was under the impression...
by talesworth
Thu Aug 01, 2024 2:00 pm
Forum: Dialogue System for Unity
Topic: Selector > OnSelectedUsable
Replies: 3
Views: 491

Selector > OnSelectedUsable

I have a FPS controller with a Selector component. I have a door with a Usable component. I'm having trouble with the Selector's OnSelectedUsable UnityEvent. When I set that event, I'm getting this error: https://i.imgur.com/HDnPK3Q.png But, it looks like the usable being passed in (the wooden door ...