Author Topic: Where is a "Backpack" in the Example X- Character?  (Read 5274 times)

kaywoods

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Where is a "Backpack" in the Example X- Character?
« on: November 28, 2012, 08:24:13 PM »
Hi,
I've download and imported the NUGI 2.2.6c in the clean empty project folder.
There is only the NGUI files in the project...

I opened the Example X- Character.
It looks to be worked normally, I can click the the spiked pads , boots..
But, where is the "Backpack item"?

I think there are 16 items slotted back pack object in the Scenes(hierachy panel).
but I can't see that "Backpack" in the game screen.(there's only the label text-"Backpack")
This is disabled when the project played..

So, I manually eanbled the item slot of the backpack gameObject during the game play(Ctrl+P) state..,
But this produced some kinds of errors like as follows.....

 "m_Memory.renderTextureBytes<0
UnityEditor.DockArea:OnGUI()

m_Memory.renderTextureBytes<0 "

Are these bugs or not?
« Last Edit: November 28, 2012, 09:17:49 PM by kaywoods »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Where is a "Backpack" in the Example X- Character?
« Reply #1 on: November 29, 2012, 07:27:44 AM »
Curious. I'm surprised no one has spotted this one before.

It's due to where the backpack slot template item is at. It's a part of the scene, and is disabled. It should instead be a prefab, and it shouldn't be disabled. I'll fix it in the next update.

You can fix it locally by making a prefab out of the disabled "Storage Icon Template" object, deleting it from the hierarchy, enabling every game object of that prefab you just created, and then selecting the Backpack game object and referencing the prefab you just created in the field that now has a "Missing" reference.

kaywoods

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Where is a "Backpack" in the Example X- Character?
« Reply #2 on: November 29, 2012, 09:02:39 PM »
Thanks..for your kind reply..
I modified the example scenes as you told..
And it works prefectly.

It looks that nobody knows that this example has something to be done because there's no error message.
Frankly, I didn't notice that at first.
I got to realize the inconsistence in the middle of studying your example to make my character item management system.

If I'm a expert in unity c sharp, I could solve the problem, but I'm just a beginner level of unity c-sharp. So, I have to ask you...

Thanks..your reply was very simple and easy solution for me...
« Last Edit: November 29, 2012, 09:05:08 PM by kaywoods »