Hey all!
I am having some troubles getting a render texture from the camera to an ingame screen at runtime.
What I hope to achieve is:
Having the players create several cameras
Having the players create several monitors
Have create a material that is bound to one spesific camera's render texture so cameras are cycleable on the screens by switching materials.
What im unable to do is getting the render texture from the camera and storing it into a material at runtime.
Or is this a bad way to achieve this?
Thanks in advance!
Edit, i have found the "Set Camera Target Texture" on the ecosystem, which i belive is what i need, but i get some errors when downloading. Does anyone know how to solve:
Assets\PlayMaker Custom Actions\Camera\SetCameraTargetTexture.cs(41,14): error CS0619: 'GameObject.camera' is obsolete: 'Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable)'
and
Assets\PlayMaker Custom Actions\Camera\SetCameraTargetTexture.cs(41,14): error CS0266: Cannot implicitly convert type 'UnityEngine.Component' to 'UnityEngine.Camera'. An explicit conversion exists (are you missing a cast?)