x


The name 'NotificationCenter' does not denote a valid type ('not found').

Hi guys,

I decided to use the Notification Center script on this wiki page in my project:

http://www.unifycommunity.com/wiki/index.php?title=NotificationCenterGenerics

The file is saved as NotificationCenter.js in Assets/Scripts/. As it says on the wiki page, I just took the script on the page as-is and used it. However, when I click play, I get the following error:

Assets/Scripts/NotificationCenter.js.js(15,36): BCE0018: The name 'NotificationCenter' does not denote a valid type ('not found').

What am I doing wrong?

MachCUBED

more ▼

asked Jan 01 '12 at 10:56 PM

MachCUBED gravatar image

MachCUBED
116 22 32 37

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

1 answer: sort voted first

As the error message says, it's called "Assets/Scripts/NotificationCenter.js.js". Don't add ".js" to script names; that makes the type "NotificationCenter.js" rather than "NotificationCenter".

more ▼

answered Jan 01 '12 at 11:26 PM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

(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:

x3338
x28
x7
x5

asked: Jan 01 '12 at 10:56 PM

Seen: 1088 times

Last Updated: Jan 01 '12 at 11:26 PM