Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RuntimePanelUtils

A collection of static methods that provide simple World, Screen, and Panel coordinate transformations.
Read time 1 minuteLast updated 4 days ago

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.