• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Doug 2 · Mar 06, 2011 at 10:27 AM · errorsyntax-errorbce0019bce0005unknown-identifier

I got a major question

Im getting these errors. I need help, i've tried the other helps but i cant understand them. I need someone to pretty much talk to me like im 3 so i can understand this. Reading these huge pages with technical terms with loops and circles on what to do are confusing me. So if anyone can just give me a straight forward answer that would be SO VERY HELPFUL. Heres some of the errors:

Assets/Scripts/enemies/turret/Turret.js(263,28): BCE0019: 'GenerateDecal' is not a member of 'Turret'.

Assets/Scripts/weapons/Gun.js(411,43): BCE0005: Unknown identifier: 'HitType'.

They are errors like that.

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image stijn · Mar 06, 2011 at 10:54 AM 4
Share

You don't seem to be a coder, so I'm gonna guess you're trying to run some game you downloaded the source of. So either you're missing some files, or some files are of an old version, or the source as a whole didn't compile before you downloaded it. Best point to start for you, is the original source you downloaded and see if you can run that.

avatar image Doug 2 · Mar 06, 2011 at 08:28 PM 0
Share

im trying to use unity to make a game, im getting those errors. and im not used to these codes, i just got unity and im trying to learn it. But im trying to test my game, and it says i have to fix the errors before i can do it. but idk how to fix it. I know about the red dot at the bottom left, you double click that etc.. idk what to put to fix it. i've been looking into it on this site and there are answer, but i cant understand them. thats what im asking. Something a 4yo can understand.

avatar image DaveA · Mar 06, 2011 at 08:31 PM 1
Share

If you could paste some code in your question (edit it), it might help, but stijn is probably correct, you've probably got corrupt or incomplete file, or old ones. Or ones that never were tested.

avatar image Doug 2 · Mar 06, 2011 at 08:45 PM 0
Share

Im slowly getting used to this. But, I deleted all my assets from the unity project tab, and added one at a time. The first thing i imported was terrains. It got errors. They say "terrain splat 1 is null" "terrain splat 0 is null" "a tree couldn't be loaded because a prefab is missing".

and thanks for all your help everyone

avatar image Doug 2 · Mar 06, 2011 at 08:47 PM 0
Share

and if i do have corrupt/incomplete/old files, how do i fix it?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by cidmodder · Mar 07, 2011 at 04:32 PM

it's hard to say without any code but usually I get those errors when I haven't definded them properly. "HitType" was probably a variable in an example script? You just don't have anything in the script that is HitType. You'll need something like HitType= whatever you want.

For the Turret I'm not really sure without seeing some code.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

'motorTorque' is not a member of 'System.Type'. 1 Answer

UNITY 3d 3.4 doesnt understand its own script? 5 Answers

Can't compile script from Scripting Tutorial (translated to Boo) 3 Answers

Accessing array in another script - Error message 2 Answers

Problem with animation code or blender? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges