389 [
Tooltip(
"Determines how UI elements in the Canvas are scaled.")]
394 [
Tooltip(
"If a sprite has this 'Pixels Per Unit' setting, then one pixel in the sprite will cover one unit in the UI.")]
399 [
Tooltip(
"Scales all UI elements in the Canvas by this factor.")]
404 [
Tooltip(
"The resolution the UI layout is designed for. If the screen resolution is larger, the UI will be scaled up, and if it's smaller, the UI will be scaled down. This is done in accordance with the Screen Match Mode.")]
408 [
Tooltip(
"A mode used to scale the canvas area if the aspect ratio of the current resolution doesn't fit the reference resolution.")]
415 [
Tooltip(
"Determines if the scaling is using the width or height as reference, or a mix in between.")]
423 [
Tooltip(
"The physical unit to specify positions and sizes in.")]
428 [
Tooltip(
"The DPI to assume if the screen DPI is not known.")]
432 [
Tooltip(
"The pixels per inch to use for sprites that have a 'Pixels Per Unit' setting that matches the 'Reference Pixels Per Unit' setting.")]
438 [
Tooltip(
"The amount of pixels per unit to use for dynamically created bitmaps in the UI, such as Text.")]
class f__AnonymousType0<< Count > j__TPar
Vector2 renderingDisplaySize
Component GetComponent(Type type)
float dynamicPixelsPerUnit
CanvasScaler.Unit physicalUnit
void Canvas_preWillRenderCanvases()
virtual void HandleConstantPixelSize()
CanvasScaler.ScreenMatchMode m_ScreenMatchMode
float m_MatchWidthOrHeight
CanvasScaler.Unit m_PhysicalUnit
float referencePixelsPerUnit
void SetReferencePixelsPerUnit(float referencePixelsPerUnit)
override void OnDisable()
void SetScaleFactor(float scaleFactor)
Vector2 m_ReferenceResolution
CanvasScaler.ScaleMode uiScaleMode
float m_FallbackScreenDPI
float m_DynamicPixelsPerUnit
Vector2 referenceResolution
virtual void HandleConstantPhysicalSize()
virtual void HandleWorldCanvas()
CanvasScaler.ScaleMode m_UiScaleMode
CanvasScaler.ScreenMatchMode screenMatchMode
virtual void HandleScaleWithScreenSize()
float m_ReferencePixelsPerUnit
float m_PrevReferencePixelsPerUnit