playMaker

Author Topic: Change / New Mesh During Runtime  (Read 3010 times)

drentek

  • Playmaker Newbie
  • *
  • Posts: 11
Change / New Mesh During Runtime
« on: December 11, 2012, 07:58:24 PM »
Hey All,

I am trying to set up a character generator & wondered if there is a function I could use.  I basically want to change a mesh (hair style) depending on what the user wants.

Thanks :)

Craig
« Last Edit: December 11, 2012, 08:00:25 PM by drentek »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Change / New Mesh During Runtime
« Reply #1 on: December 12, 2012, 02:24:01 AM »
a mesh is a type of object too, which can be stored in an object variable.
Here:
http://hutonggames.com/playmakerforum/index.php?topic=2396.0
I describe how to setup such a variable. If you specify the type of an object variable, the get component action will get that type of component. If you don't get it I'll just make an example project, it doesn't take much time.
Best,
Sven

drentek

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Change / New Mesh During Runtime
« Reply #2 on: February 07, 2013, 09:33:34 PM »
Hi Kiriri,

I don't quite get it. Not to worry. Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Change / New Mesh During Runtime
« Reply #3 on: February 08, 2013, 01:29:45 AM »
Hi,

 Here, I would even not touch the mesh itself, but rather have several gameObjects, one for each hair style ( or anything else), and simply witch. That of course only works for props, for the main character mesh, that could be a bit more tricky.

Bye,

 Jean