playMaker

Author Topic: Question : Create an object?  (Read 1974 times)

tester

  • Playmaker Newbie
  • *
  • Posts: 31
Question : Create an object?
« on: October 19, 2012, 02:50:00 AM »
How to create an object and make that object and belong to another object?


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Question : Create an object?
« Reply #1 on: October 19, 2012, 02:58:57 AM »
Hi,
 
 to create an object, you need first to have a prefab which is the prefered option:
http://docs.unity3d.com/Documentation/Manual/Prefabs.html

then in playmaker you use the action "Create Object" in the GameObject category, and it will instantiate that prefab in your scene.

then to parent it to another object, use the action "Set Parent"

bye,

 Jean