文档

Unity Engine

Unity Engine

RuntimePanelUtils

A collection of static methods that provide simple World, Screen, and Panel coordinate transformations.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static class RuntimePanelUtils

Static Methods

Method

Description

CameraTransformWorldToPanelTransforms a world absolute position to its equivalent local coordinate on given panel, using provided camera for internal WorldToScreen transformation.
CameraTransformWorldToPanelRectTransforms a world position and size (in world units) to their equivalent local position and size on given panel, using provided camera for internal WorldToScreen transformation.
ResetDynamicAtlasResets the dynamic atlas of the panel.
ResetRendererResets the renderer of the panel. Releases all meshes, rendering commands, and pools owned by the renderer.
ScreenToPanelTransforms a screen absolute position to its equivalent local coordinate on given panel.
SetTextureDirtyNotifies the dynamic atlas of the panel that the content of the provided texture has changed. If the dynamic atlas contains the texture, it will update it.