mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 21:55:09 +00:00
rendertexture null check
This commit is contained in:
parent
4052e44e7b
commit
81e546e3fe
2 changed files with 25 additions and 9 deletions
|
@ -399,20 +399,35 @@ namespace HeavenStudio
|
||||||
height = (int)(width / 16f * 9f);
|
height = (int)(width / 16f * 9f);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameRenderTexture.Release();
|
if (GameRenderTexture != null)
|
||||||
|
{
|
||||||
|
GameRenderTexture.Release();
|
||||||
|
|
||||||
GameRenderTexture.width = width;
|
GameRenderTexture.width = width;
|
||||||
GameRenderTexture.height = height;
|
GameRenderTexture.height = height;
|
||||||
|
|
||||||
GameRenderTexture.Create();
|
GameRenderTexture.Create();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GameRenderTexture = new RenderTexture(width, height, 24);
|
||||||
|
GameRenderTexture.Create();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (OverlayRenderTexture != null)
|
||||||
|
{
|
||||||
|
OverlayRenderTexture.Release();
|
||||||
|
|
||||||
OverlayRenderTexture.Release();
|
OverlayRenderTexture.width = (int)(width * 1.5f);
|
||||||
|
OverlayRenderTexture.height = (int)(height * 1.5f);
|
||||||
|
|
||||||
OverlayRenderTexture.width = (int)(width * 1.5f);
|
OverlayRenderTexture.Create();
|
||||||
OverlayRenderTexture.height = (int)(height * 1.5f);
|
}
|
||||||
|
else
|
||||||
OverlayRenderTexture.Create();
|
{
|
||||||
|
OverlayRenderTexture = new RenderTexture((int)(width * 1.5f), (int)(height * 1.5f), 24);
|
||||||
|
OverlayRenderTexture.Create();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ChangeMasterVolume(float value)
|
public static void ChangeMasterVolume(float value)
|
||||||
|
|
|
@ -31,5 +31,6 @@ MonoBehaviour:
|
||||||
- Assets/Scripts/InputSystem/PlayerInput.cs
|
- Assets/Scripts/InputSystem/PlayerInput.cs
|
||||||
- Assets/Scripts/JudgementManager.cs
|
- Assets/Scripts/JudgementManager.cs
|
||||||
- Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/RatingScreenPropertyDialog.cs
|
- Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/RatingScreenPropertyDialog.cs
|
||||||
|
- Assets/Scripts/GlobalGameManager.cs
|
||||||
PathsToSkipImportEvent: []
|
PathsToSkipImportEvent: []
|
||||||
PathsToIgnoreOverwriteSettingOnAttribute: []
|
PathsToIgnoreOverwriteSettingOnAttribute: []
|
||||||
|
|
Loading…
Reference in a new issue