Hi guys,
I'm just looking for a simple way to be able to take a photo without the UI being in the way.
I'm using Prime 31 plugin with NGUI.
I know I could use the NGUI Camera's culling mask, onClick set the culling mask to 0 then turn it back on.
I'm just unsure how to go about it as I cant use a non-static object to select camera as the take photo code is in a coroutine as I get the error
An object reference is required to access non-static member
I have got this so far,
public Camera hideUI;
public static IEnumerator TakeScreenshot(MonoBehaviour mono )
{
if( Application.platform == RuntimePlatform.IPhonePlayer )
{
int previousMask = hideUI.cullingMask;
hideUI.cullingMask = 0;
//take screenshot code from prime31
hideUI.cullingMask = previousMask;
}
I'm just a bit unsure how I find the camera's name that I need to refer to - unless theres a better way around this please let me know! Thanks guys.