Merge branch 'master' of https://github.com/croakfang/UmaViewer
This commit is contained in:
@@ -19,7 +19,7 @@ public class Screenshot : MonoBehaviour
|
|||||||
|
|
||||||
public static void TakeScreenshot()
|
public static void TakeScreenshot()
|
||||||
{
|
{
|
||||||
var camera = UmaViewerBuilder.Instance.AnimationCamera.enabled ? UmaViewerBuilder.Instance.AnimationCamera : Camera.main;
|
var camera = UmaViewerBuilder.Instance.AnimationCamera.gameObject.activeInHierarchy ? UmaViewerBuilder.Instance.AnimationCamera : Camera.main;
|
||||||
int width = int.Parse(UmaViewerUI.Instance.SSWidth.text);
|
int width = int.Parse(UmaViewerUI.Instance.SSWidth.text);
|
||||||
int height = int.Parse(UmaViewerUI.Instance.SSHeight.text);
|
int height = int.Parse(UmaViewerUI.Instance.SSHeight.text);
|
||||||
width = width == -1 ? Screen.width : width;
|
width = width == -1 ? Screen.width : width;
|
||||||
@@ -46,7 +46,7 @@ public class Screenshot : MonoBehaviour
|
|||||||
|
|
||||||
private IEnumerator RecordGif(int width, int height, bool transparent, int quality)
|
private IEnumerator RecordGif(int width, int height, bool transparent, int quality)
|
||||||
{
|
{
|
||||||
var camera = UmaViewerBuilder.Instance.AnimationCamera.enabled ? UmaViewerBuilder.Instance.AnimationCamera : Camera.main;
|
var camera = UmaViewerBuilder.Instance.AnimationCamera.gameObject.activeInHierarchy ? UmaViewerBuilder.Instance.AnimationCamera : Camera.main;
|
||||||
var ppLayer = camera.GetComponent<PostProcessLayer>();
|
var ppLayer = camera.GetComponent<PostProcessLayer>();
|
||||||
bool oldPpState = ppLayer.enabled;
|
bool oldPpState = ppLayer.enabled;
|
||||||
ppLayer.enabled = false;
|
ppLayer.enabled = false;
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ PlayerSettings:
|
|||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 2.1.5
|
bundleVersion: 2.1.6
|
||||||
preloadedAssets: []
|
preloadedAssets: []
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user