I hv 10 cards prefabs and i want to intantiate all of them in scene under a group.. Deck is the parent(i want it to be), and card shud be children...so when i move my deck card will be moved ...so the problem is when i use intantiate every card is coming on each other and all mixed up they r now children but all mixed up...
or other way all card are on scene on the right position while game but they do not hv parent (deck)... is there any way that i can put them in deck while gameplay using scrip... (part of scripting)
asked Apr 02 '11 at 08:35 PM
The question is a little unclear, but I notice you're assigning 'height' to 'localPosition', but then using 'position' when you create the object. If all the cards are being instantiated at exactly the same position, that might be the reason.
answered Apr 03 '11 at 06:33 AM