question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Canvas.scaleFactor not take into account

See original GitHub issue

env: Unity 2018.2.17f1 When using Screen space - Overlay and UI scale Mode Scale with screen size, Canvas.scaleFactor should take into account inside UpdateMesh()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mob-sakaicommented, Dec 12, 2018

I found a way to scale well in most cases!

  • All ParticleSystem.ScalingModes are supported
  • All Canvas.RenderModes are supported

It scales well even if you change the following parameters:

  • Camera.FieldOfView
  • CanvasScaler.MatchWidthOrHeight
  • Canvas.PlaneDistance
0reactions
mob-sakaicommented, Dec 12, 2018

The issue will be fixed in the next release:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

CanvasScaler.scaleFactor has no effect in code
My Canvas has rootCanvas different from itself. So AFAIK CanvasScaler wouldn't work on my Canvas. Do I need to remove CanvasScaler component?
Read more >
Unity3D Canvas scaleFactor not working correctly
I have been working on the UI of a game I am making with in this part of the UI it generates a...
Read more >
Canvas Scaler, Explained | Unity Tutorial - YouTube
Learn all about the Canvas Scaler! The Canvas Scaler comes by default whenever you make a Canvas in Unity, but many of us...
Read more >
On Web, don't scale the canvas on scale factor changes
The documentation says about WindowEvent::ScaleFactorChanged::new_inner_size: By default, this will contain the size suggested by the OS, ...
Read more >
WorldToScreenPoint not returning correct value, even after ...
WorldToScreenPoint() to convert, but I think that doesn't take into account the canvas scaling. So then I'm using camera.WorldToScreenPoint() / ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found