playMaker

Author Topic: New Ecosystem Sample: Prefab Instanciation  (Read 1536 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
New Ecosystem Sample: Prefab Instanciation
« on: April 28, 2015, 03:15:43 AM »
Hi Everyone,

 A simple Sample is now available on the Ecosystem, demonstrating three ways to deal with prefab instanciation and passing data to it.



It demonstrates:

-- how to force a FsmVariable value on the instance so that when the instance fsm starts, the value is already set.
-- How to send an "Init" event to the instance, passing value to be used as well by the instance
-- How the instance can catch the reference of the manager who created it, and communicate back for example or in this case, us the position of the manager to position itself.

Bye,

 Jean