public Timelapse(float waitTime, int times, ScreenShotArgs myArgs) { Start = DateTime.Now; Args = new TimelapseArgs(myArgs, Start); if (obj == null) { obj = GameObject.Find("Timelapse_OBJ"); } if (obj == null) { obj = new GameObject("Timelapse_OBJ"); } if (com == null) { com = obj.GetComponent <FoCsBehaviour>(); } if (com == null) { com = obj.AddComponent <FoCsBehaviour>(); } WaitTime = waitTime; Times = times; Routine = com.StartCoroutine(TakeImage()); }
public ScreenShotArgs(ScreenShotArgs other) { ResolutionMultiplier = other.ResolutionMultiplier; fileName = other.fileName; Path = other.Path; }
public static void TakeScreenShot(ScreenShotArgs screenShotArgs) => ScreenCapture.CaptureScreenshot(screenShotArgs.GetFileNameAndPath(), screenShotArgs.ResolutionMultiplier);
public static void TakeScreenShot() => TakeScreenShot(ScreenShotArgs.GetUnityCap());
public TimelapseArgs(ScreenShotArgs args, DateTime start) : base(args) => Start = start;