Shadowing
Member
So i noticed today I tried to add a building to act as a quest pick up.
Version 1 seem to work for this.
Does a object have to have a UltimateCharacterLocomotion component for the Interact system? Only thing I can think of that is causing this error.
Error: An IInteractableTarget must be specified in the Targets field.
UnityEngine.Debug:LogError (object)
Opsive.UltimateCharacterController.Traits.Interactable:Awake () (at Assets/Opsive/UltimateCharacterController/Scripts/Traits/Interactable.cs:46)
As I spawn the building. I'm doing something like this. All my Quest NPC all work fine.
Version 1 seem to work for this.
Does a object have to have a UltimateCharacterLocomotion component for the Interact system? Only thing I can think of that is causing this error.
Error: An IInteractableTarget must be specified in the Targets field.
UnityEngine.Debug:LogError (object)
Opsive.UltimateCharacterController.Traits.Interactable:Awake () (at Assets/Opsive/UltimateCharacterController/Scripts/Traits/Interactable.cs:46)
As I spawn the building. I'm doing something like this. All my Quest NPC all work fine.
Code:
Interactable NPCInteractable = NewSpawn.gameObject.AddComponent<Interactable>();
NonAnimatedInteractable NPCInteractableTarget = NewSpawn.gameObject.AddComponent<NonAnimatedInteractable>();
NPCInteractable.Targets = new MonoBehaviour[1]{NPCInteractableTarget};
NPCInteractable.ID = 4;