playMaker

Author Topic: Set Object Value Advance  (Read 2979 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Set Object Value Advance
« on: December 09, 2015, 09:38:48 PM »
Set an Fsm object variable from a gameobject by name. You can set anything as an Fsm object (script, behaviour, component, etc) as long as it has a name (and your fsm object is set to the same type).

Very good for when using FSM template as it sets the object automatically by name and not by drag&drop.

Note: No space in name and capital letter reflection must be followed. Example: 'Mesh Renderer' is the name of element; input into action Object Name field as 'MeshRenderer'.

On ecosystem or https://snipt.net/dudebxl/

Hope it helps.
« Last Edit: December 09, 2015, 10:14:14 PM by dudebxl »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Set Object Value Advance
« Reply #1 on: December 14, 2015, 06:02:49 AM »
Hi,

 Just a warning, that this action may result in failed publication on mobile if the component targeted isn't included by default when Unity compiles, which means you'll need to add it the link.xml file.


 Bye,

 Jean