Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Raknill on May 11, 2016, 12:53:22 PM
-
Just purchased Playmaker and installed it, and I'm getting an error that prevents me from adding the FSM component to my character.
The error is; "Assets/PlayMaker/Actions/ControllerIsGrounded.cs(74,37): error CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)"
I haven't yet actually done anything with the system, simply imported into my project which contains my custom character, an AI guard, a camera, light and floor.
I know the issue is vague, but I'm hesitant to make any changes to the default script as I fear messing up the dependencies.
Any help is appreciated. I am using Unity 5.3. Included is a pic of my scene, and of the line in question.
-
Hi,
Does your project define a new CharacterController class in the global namespace?
If possible you should put it in a namespace to avoid conflicting with UnityEngine.CharacterController.
Or you could edit ControllerIsGrounded.cs and replace CharacterController with UnityEngine.CharacterController. But that change would get overwritten when you update Playmaker.
-
I've learned a valuable lesson here, bud. That was the issue.
Can we delete this thread and pretend it never happened? :P
Thanks for the help, looking forward to getting started with PM this afternoon.
-
No problem :)