Unity
[Unity] RectTransformUtility 팁
https://docs.unity3d.com/ScriptReference/RectTransformUtility.html Unity - Scripting API: RectTransformUtility Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. Close docs.unity3d.com UGUI 에서 RectTransform 의 위치를 가지고 월드좌표, 마우스좌표와 자주 연동시킬 때 ..
[Unity] UniTask + Action + Lambda 고찰
public static class UniTaskHelper { public static Action Action(Func asyncAction) { return (t1) => asyncAction(t1).Forget(); } } Action _fooAction; void Awake() { _fooAction = UniTaskHelper.Action(OnSceneReady); } void OnEnable() { _sceneReadyEvent += _fooAction; } void OnDisable() { _sceneReadyEvent -= _fooAction; } async UniTaskVoid OnSceneReady(GameScene scene) { _logger.Info("Scene ready: " ..