Adding a monobehavior class to an Ability

Shadowing

Member
I had no issues doing this in version 1 of the controller. Not sure why its different.

How do i resolve the name space issue on an Ability?




Code:
public CharacterSettings characterSettings;
 
Last edited:
Assets\Opsive\UltimateCharacterController\Scripts\Character\Abilities\Run.cs(39,9): error CS0246: The type or namespace name 'CharacterSettings' could not be found (are you missing a using directive or an assembly reference?)

Opps sorry I forgot to say its a MonoBehaviour

So idk how to get into the MonoBehavior name space i guess
 
There isn't anything special about abilities from the compiler point of view. You'll need to include the namespace, and also check the assembly definition file. Because of the assembly definition file I recommend not storing your own abilities within the UCC directory.
 
Damn ya thats the reason lol.
I moved my abilities out of the UCC and now it works.
I remember now I think on the old controller I ran into this problem on some scripts but not others. So now I know lol.
Thanks a bunch man. Also this new ability system kicks ass :)
 
Top