Storyline+Dialog初步

This commit is contained in:
SoulliesOfficial
2026-07-05 16:08:23 -04:00
parent afa8a56e1d
commit d031afd075
464 changed files with 25716 additions and 4209 deletions

View File

@@ -104,15 +104,5 @@ namespace SLSUtilities.General
// 最后赋值 target.anchoredPosition = localPos;
return localPos;
}
/// <summary>
/// 获取目标 RectTransform 在目标空间 RectTransform 中的本地位置
/// </summary>
public static Vector2 GetLocalUIPosition(RectTransform targetRect, RectTransform targetSpace)
{
Vector2 screenPos = RectTransformUtility.WorldToScreenPoint(null, targetRect.position);
RectTransformUtility.ScreenPointToLocalPointInRectangle(targetSpace, screenPos, null, out Vector2 localPos);
return localPos;
}
}
}