playMaker

Author Topic: How to reference scene objects in Prefabs and Templates  (Read 1526 times)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
How to reference scene objects in Prefabs and Templates
« on: February 05, 2019, 02:26:38 PM »
This topic comes up a lot, so I made this page:
https://hutonggames.fogbugz.com/f/page?W1707

Please let me know if it's clear. I plan to add more of these step-by-step articles for frequently asked questions, so you don't have to search the forums for the answers!


mathi4975

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to reference scene objects in Prefabs and Templates
« Reply #1 on: April 03, 2019, 04:37:24 AM »
HI, I tried following the steps but it does not resolve the error. Please advise. Thanks alot.
Rgrds

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: How to reference scene objects in Prefabs and Templates
« Reply #2 on: April 03, 2019, 08:00:20 PM »
you could also set the object that you want to refer (Main Camera for example) as Global so it can be referenced anytime :P
use:Set game object <Main Camera> as Variable GLOBAL CAMERA


btw Jean, i couldn't see the Input/output on the variable tab
am i missing something?
« Last Edit: April 03, 2019, 08:02:07 PM by ch1ky3n »

mathi4975

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to reference scene objects in Prefabs and Templates
« Reply #3 on: April 04, 2019, 11:55:04 AM »
Hi,
   Thanks alot for your prompt reply. Now it works well.
Rgrds