Unknown Identifier 'infobox'.

I’m making an inventory and have two scenes. I scripted an information box in the first and it works fine, but when I used the same code for the second scene, I got the error BCE0005: Unknown identifier: ‘t_infobox’.

I re-typed the code for that part and I still got the error, so I called the infobox ‘breadbox’ instead and changed all of the ‘infobox’ in that script to ‘breadbox’, but I just get Unknown Identifier ‘t_breadbox’.

Here are the two parts of the script:

[17647-screen+shot+2013-11-09+at+12.14.55.png|17647]
[17648-screen+shot+2013-11-09+at+12.14.47.png|17648]

Thanks.

1 Answer

1

Nowhere in the screenshots you’ve posted do you declare t_breadbox, and that’s what the error is also telling you…

I’m guessing you meant to write a line somewhere near the top that says:

public var t_breadbox : Texture;

?