playMaker

Author Topic: Need help to join two gameObjects, then save the result.  (Read 8830 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Need help to join two gameObjects, then save the result.
« Reply #15 on: April 17, 2013, 02:15:56 AM »
Hi,

 unparenting is easy yes, simply parent to null or something else.

bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Need help to join two gameObjects, then save the result.
« Reply #16 on: April 17, 2013, 07:05:40 AM »
I may have solved it.

I've been thinking far too complicated, it's really simple actually. I decided to use "set parent" then save the object (gameObject) as a variable in the player prefs.

You lose the identity of part B, but I assume you can unparent fairly easily.

Thank you to everyone who helped.

Why do you lose the identity of anything?

Quote
create an empty game object prefab, set it as a parent to the A+B objects and use the empty game object prefab as your "C" then start doing everything to the C object as you want
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

robmuzz

  • Playmaker Newbie
  • *
  • Posts: 18
Re: Need help to join two gameObjects, then save the result.
« Reply #17 on: April 17, 2013, 12:54:47 PM »
Thank you,

I haven't got to unparenting yet.

I wasn't sure if I was to make a more complex part to add as a child, if it would lose things like FSMs or animations.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Need help to join two gameObjects, then save the result.
« Reply #18 on: April 17, 2013, 01:24:52 PM »
 It won't change the object, it simply moves it in the hierarchy and makes the Child object inherit the parents transform so they seem connected. If you want to combine meshes and export results to a file then yes, more complex but maybe not necessary.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D