- Home /
Question by
bunnynsnake · Apr 21, 2018 at 12:31 AM ·
c#errorerror messagevirtualcompiler error
Why is this error coming up in my code ?
I have attached pictures of the issue, can someone explain it to me, and please give me a fix for it?
screenshot-75.png
(199.7 kB)
screenshot-72.png
(54.7 kB)
Comment
Best Answer
Answer by Nebukam · Apr 21, 2018 at 12:47 AM
From the look of it, your code is missing critical dependencies (Namely, either the class VirtualJoystick, or importing the namespace containing it).
From a quick google, it could be this git project : https://github.com/maydinunlu/virtual-joystick-unity missing from the code you have.
so i just have to add the namespace? where do i add it, at the top with the other namespaces? i already have a namespace
namespace UnityStandardAssets.Characters.FirstPerson
so i add it before that, to that, how do i do this?
No add on top along with the other "using" (using UnityEngine; using System.Collections; etc)
thank you i am doing this
using is = VirtualJoystick;