- Home /
Scripting errors
Hi there
The following scipt error has come up and I have no idea what it means. Can you help. Thanks
Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(193,54): UCW0003: WARNING: Bitwise operation '|' on boolean values won't shortcut. Did you mean '||'?
Scripts named 'Gun.js' exist in multiple locations (Assets/Scripts/Gun.js). Please rename one of the scripts to a unique name.
Scripts named 'Gun.js' exist in multiple locations (Assets/Scripts/weapons/Gun.js). Please rename one of the scripts to a unique name.
Assets/Standard Assets/Editor/Image Effects/DepthOfField34Editor.js(79,42): BCE0018: The name 'DepthOfField34' does not denote a valid type ('not found').
Assets/Standard Assets/Editor/Image Effects/TiltShiftEditor.js(36,42): BCE0018: The name 'TiltShift' does not denote a valid type ('not found').
FYI I have no idea what I'm doing - I've just started using Unity. I'm sure this is obvious 8-)
Answer by bompi88 · Dec 05, 2012 at 12:57 PM
Ok, I will try to help you. Looks like some small errors ;-) I will number them and give you a "how to get rid of them", step by step.
Somewhere in your ThirdPersonController script , you have an if-sentence where you probably should use '||' instead of '|' as an operator. '|' is rarely used in Unity, i think. Just substitute '|' with '||'.
You can't name two scripts in a project alike, so rename one of them.
Same as 2.
and 5. I need to take a look at DepthOfField34Editor.js and TiltShiftEditor.js. These errors are probably occurring because of you renaming or "duplicating" these files.