Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: looi on February 24, 2016, 04:30:38 AM

Title: UnityEngine.Camera Object variable type? [SOLVED]
Post by: looi on February 24, 2016, 04:30:38 AM
Hello

I am instantiating a prefab around the game. This prefabs contains a camera. What I want to do is to asign a Render Texture to each instantiated cam. I have the GameObject in a variable, and what I would do is:

- Get Component. Save the camera component in an Object (UnityEngine.Camera) variable.
- Set Property > Tarjet Texture and asign it.

It is just what it is said in this post:
http://hutonggames.com/playmakerforum/index.php?topic=2791.msg12641#msg12641 (http://hutonggames.com/playmakerforum/index.php?topic=2791.msg12641#msg12641)

My problem is that I can't find the UnityEngine.Camera Object type when I create a Object variable. Is it posible? Maybe I am doing something wrong?
Title: Re: UnityEngine.Camera Object variable type?
Post by: 3d_Artist1987 on February 24, 2016, 06:23:07 AM
Hi,

http://forum.unity3d.com/attachments/dragcomponenttovariables-gif.167668/

Dev
Title: Re: UnityEngine.Camera Object variable type?
Post by: looi on February 24, 2016, 09:57:57 AM
Oooh! I didn't know it is possible to do that!

Thank you Dev!