unity 6 호환 오류 경고 메시지 제거

This commit is contained in:
정영민
2025-04-16 13:51:42 +09:00
parent 97259690ea
commit 6b7fce3e38
11 changed files with 389 additions and 312 deletions

View File

@@ -45,7 +45,7 @@ public class Dragger : UnityEngine.MonoBehaviour, IBeginDragHandler, IDragHandle
catch { Debug.LogWarning("<b>[Movable Window]</b> Drag Area has not been assigned."); }
}
rect = GetComponent<RectTransform>();
var toptoolbar = FindObjectOfType<Panel_TopToolBar>();
var toptoolbar = FindFirstObjectByType<Panel_TopToolBar>();
var topbarrect = toptoolbar.GetComponent<RectTransform>();
yMinHeight = topbarrect.sizeDelta.y;
baseSibling = DragObjectInternal.transform.GetSiblingIndex();

View File

@@ -62,7 +62,7 @@ public class Panel_ToolBar : PanelBase
{
var filePath = Path.GetFullPath(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos));
capture = GameObject.FindObjectOfType<CaptureBase>();
capture = GameObject.FindFirstObjectByType<CaptureBase>();
capture.CameraRenderResolution = CaptureBase.Resolution.Custom;
capture.CompletedFileWritingAction += OnCompleted;
}

View File

@@ -19,7 +19,7 @@ namespace CHN
private string simplePath;
public override void AfterAwake()
{
var machines = FindObjectsOfType<Machine>();
var machines = FindObjectsByType<Machine>(FindObjectsSortMode.None);
foreach (var machine in machines)
{
if (string.IsNullOrEmpty(machine.code))