The Unity documentation says that in order to access image effects through scripting I must include: using UnityStandardAssets.ImageEffects;
Straightforward. However, when going back to Unity, the console gives me the following error regarding this line: Assets/Scripts/GUI/Inventory.cs(3,7): error CS0246: The type or namespace name `UnityStandardAssets’ could not be found. Are you missing a using directive or an assembly reference?
I have all image effects working correctly inside the project, but I cannot access them through scripting. What’s going on?
What had thrown me off was MonoDevelop’s code completion does not pick this up at all and displays ().enabled in red. But the code works in Unity. Having code completion would be useful but is not a necessity.
using UnityStandardAssets.Character.FirstPerson;
including this line…it throws an error this
Assets\GroundBehaviour.cs(4,7): error CS0246: The type or namespace name ‘UnityStandardAssets’ could not be found (are you missing a using directive or an assembly reference?
I am not getting how should I do the asset thing you told, as when i am clicking import package, there’s only one thing listed - “custom package”. Please tell me how to fix this whole errrorrr!
so what should I do. Actually I am not able to add/drag that “move” scripting file to the Sphere gameobject. Whenever i do, that popup’s coming. Please help!
I think thats the Mono Behaviour thing which is coming in between. Please tell what to do. No other option except Visual studio is coming in the preferences, like in following this thing - “Edit> Preferences > External Tools> Here we have the option: External Script Editor: we can select MonoDevelop (built-in)”
I’m guessing you’re trying to follow some sort of tutorial. Check what version of Unity was written for. Download that version if you want to follow that tutorial. Or choose another tutorial, there are plenty without using that package too.