Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Alex Chouls on February 05, 2019, 12:26:38 PM

Title: How to reference scene objects in Prefabs and Templates
Post by: Alex Chouls 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!

Title: Re: How to reference scene objects in Prefabs and Templates
Post by: mathi4975 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
Title: Re: How to reference scene objects in Prefabs and Templates
Post by: ch1ky3n 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?
Title: Re: How to reference scene objects in Prefabs and Templates
Post by: mathi4975 on April 04, 2019, 08:55:04 AM
Hi,
   Thanks alot for your prompt reply. Now it works well.
Rgrds