obsidian/笔记文件/2.笔记/PixelAdjustPoint.md
2025-03-26 00:02:56 +08:00

15 lines
659 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#unity/日常积累
# [RectTransformUtility](https://docs.unity.cn/cn/current/ScriptReference/RectTransformUtility.html).PixelAdjustPoint
public static [Vector2](https://docs.unity.cn/cn/current/ScriptReference/Vector2.html) PixelAdjustPoint ([Vector2](https://docs.unity.cn/cn/current/ScriptReference/Vector2.html) point, [Transform](https://docs.unity.cn/cn/current/ScriptReference/Transform.html) elementTransform, [Canvas](https://docs.unity.cn/cn/current/ScriptReference/Canvas.html) canvas);
## 返回
**Vector2** 像素调整点。
## 描述
将屏幕空间中的给定点转换为像素校正点。
![[Pasted image 20240402115713.png]]