playMaker

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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3569
  • Official Playmaker Support
    • View Profile
    • LinkedIn
How to reference scene objects in Prefabs and Templates
« on: February 05, 2019, 12: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: 2
    • View Profile
Re: How to reference scene objects in Prefabs and Templates
« Reply #1 on: April 03, 2019, 01:37:24 AM »
HI, I tried following the steps but it does not resolve the error. Please advise. Thanks alot.
Rgrds

ch1ky3n

  • Junior Playmaker
  • **
  • Posts: 71
    • View Profile
Re: How to reference scene objects in Prefabs and Templates
« Reply #2 on: April 03, 2019, 05: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, 05:02:07 PM by ch1ky3n »

mathi4975

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