SOLVED Parent and first child have same index/id?

flyinian

Member
I am having trouble updating data when switching what is being selected(think of items in a store and when you click different items, it gives different data for each item). This is determined by the object's index/id when clicked. I noticed that the parent and first child of said parent has the same index/id. The second child has a different index/id.

Could this be causing my problem i'm having?

Why do the parent and first child have the same index/id and why does the second child have a different index/id?
 

samspade

Member
Object id or instance id? It is not possible, as far as I know, for two objects to have the same id or for two instances to have the same id or for object ids to ever be the same as instance ids.

How are you checking ids?
 

flyinian

Member
Object id or instance id? It is not possible, as far as I know, for two objects to have the same id or for two instances to have the same id or for object ids to ever be the same as instance ids.

How are you checking ids?
That's what I thought.

Instance Id and object index.

I'm checking them through a simple draw gui event.
 

flyinian

Member
I'm going to try a different approach in hopes it'll prevent this problem i'm having.

Thanks for the help, though.
 
Top