x


Unity BCE0005 Error. Please Help!

Hello Guys,

This is my first post so here I go.

I Get a BCE0005 Error. It says "BCE0005 Unkown Identifier: 'RotationAxisRotationXY'.

My script I'm trying to write is for RotationAxisRotationXY is "if(RotationAxisRotationXY == RotationAxis.MouseX){"

I have some script after that but Why is it saying RotationAxisRotationXY Is Unknown. How can I Fix this?

Regards, Raxis.

more ▼

asked Apr 26, 2012 at 06:47 PM

Raxis gravatar image

Raxis
27 35 27 29

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Are you sure that variable (RotationAxisRotationXY) is declared in that scope or a higher one ?

more ▼

answered Apr 26, 2012 at 07:06 PM

Berenger gravatar image

Berenger
12.8k 39 42 87

(comments are locked)
10|3000 characters needed characters left

Surely a variable has to have a lowercase first letter?

more ▼

answered Apr 27, 2012 at 04:20 PM

GenericUsername_1004 gravatar image

GenericUsername_1004
17 6 4 5

a variables first letter doesn't "have" to be lowercase

Apr 27, 2012 at 04:22 PM Lo0NuhtiK

Indeed, it's just a convention you may or may not follow. It helps people to know if a word is a function, a variable, a property, a constant etc. You can write everything in capital if you like it !

Apr 27, 2012 at 05:26 PM Berenger
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3927
x3461
x76
x33

asked: Apr 26, 2012 at 06:47 PM

Seen: 967 times

Last Updated: Apr 27, 2012 at 05:26 PM