-
-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Soft mask doesn't work with dynamic resolution on Android #227
Comments
Thank you for your reporting! |
Hmm, it seems that when
private void Awake()
{
const float dynamicResolutionScale = 0.5f;
const float renderScale = 0.5f;
ScalableBufferManager.ResizeBuffers(dynamicResolutionScale, dynamicResolutionScale);
var pipelineAsset = GraphicsSettings.currentRenderPipeline;
if (pipelineAsset)
{
pipelineAsset
.GetType()
.GetProperty("renderScale")
.SetValue(pipelineAsset, renderScale);
}
camera.allowDynamicResolution = true;
} |
Solution based on this result: If |
Thanks, it worked for me! So now when I want to use dynamic resolution, I only call I guess you should mention this case in Limitations |
That makes sense. |
I use URP. I have two cameras - main camera which is rendering everything but UI layer and UI camera for UI layer. Main camera is Base, UI camera is Overlay and it's in Main camera's stack. When I use Allow Dynamic Resolution on Main camera - it stops working on Android. It works fine in Editor.
To Reproduce
Steps to reproduce the behavior:
Download minimal project:
SoftMaskDynamicResolution.zip
Build Android Build
Expected behavior
Working soft mask on Android with Dynamic resolution
Screenshots
How it looks in Editor:
How it looks on Android device:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: