playMaker

Author Topic: Array maker fill game object inside empty game object  (Read 939 times)

Captaincrud

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
Array maker fill game object inside empty game object
« on: October 13, 2016, 12:22:56 AM »
I need a way to grab a game object from a array and child it to a game object so i can switch game objects at run time. this is so it can switch with mupitle  game objects at diffrent times.
« Last Edit: October 13, 2016, 12:27:49 AM by Captaincrud »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4817
    • View Profile
    • jinxtergames
Re: Array maker fill game object inside empty game object
« Reply #1 on: October 13, 2016, 02:29:03 AM »
Hi,
you can do that i different ways but the basics are the same.

make an array, place the object (or prefabs) in it. use "Array Get" to select an object.

Then, depending on your needs you can use "Create Object" to create from a prefab (or duplicate from an object in the scene) OR you can have you objects already in place and use "Activate Game Object" to activate/deactivate your object OR you can move your objects from off screen.