미사용 클래스 삭제 및 컴파일러 경고 수정

This commit is contained in:
wsh
2025-05-20 16:40:14 +09:00
parent 41d23c984e
commit 46bf63621d
21 changed files with 15 additions and 120 deletions

View File

@@ -27,7 +27,6 @@ namespace Studio.UVC.UI
public int TrayCount { get => trayCount; } public int TrayCount { get => trayCount; }
private bool isFirst = false; private bool isFirst = false;
private bool ishvc = false;
private RectTransform rect; private RectTransform rect;
public RectTransform Rect { get { return rect; } } public RectTransform Rect { get { return rect; } }

View File

@@ -80,7 +80,7 @@ namespace Studio.UVC.UI
private UISideLoadFactory Create() private UISideLoadFactory Create()
{ {
var asset = Resources.Load<GameObject>(UISideLoadFactory.PrefabsPath); var asset = Resources.Load<GameObject>(UISideLoadFactory.PrefabsPath);
var canvas = FindObjectOfType<CreateUIPanel>(); var canvas = FindAnyObjectByType<CreateUIPanel>();
var item = Instantiate<GameObject>(asset, canvas.transform); var item = Instantiate<GameObject>(asset, canvas.transform);
item.transform.localScale = Vector3.one; item.transform.localScale = Vector3.one;
var panel = item.AddComponent<UISidePanel>(); var panel = item.AddComponent<UISidePanel>();

View File

@@ -30,7 +30,7 @@ namespace Studio.UI
public Action<ELogic> onClickCreateUI; public Action<ELogic> onClickCreateUI;
public override async void AfterAwake() public override void AfterAwake()
{ {
Button_AppSetting.onClick.AddListener(OnClickAppSetting); Button_AppSetting.onClick.AddListener(OnClickAppSetting);
Button_Authentication.onClick.AddListener(OnClickAuthentication); Button_Authentication.onClick.AddListener(OnClickAuthentication);

View File

@@ -23,15 +23,10 @@ namespace Studio.UI
public Button Button_DataStorage; public Button Button_DataStorage;
public Button Button_DataUpdateSetting; public Button Button_DataUpdateSetting;
public event Action onClickDataStorage;
public event Action onClickDataUpdateSetting;
/*Build*/ /*Build*/
public Button Button_Build; public Button Button_Build;
public Button Button_Run; public Button Button_Run;
public event Action onClickBuild;
public event Action onClickRun;
public override void AfterAwake() public override void AfterAwake()
{ {

View File

@@ -1,30 +0,0 @@
using UnityEngine;
using Studio.Asset;
using Studio.Command;
namespace Studio.Command
{
public class CreateInterferedObjectButtonCommand : IReversibleCommand
{
public CreateInterferedObjectButtonCommand()
{
}
public string id { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
public bool CanExecute()
{
throw new System.NotImplementedException();
}
public void Execute()
{
}
public void Undo()
{
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 57aaa2e5b1c74a74b955b7cdc045e483

View File

@@ -1,15 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using XRLib;
namespace Studio
{
public class LocalItem
{
public FileInfo fileInfo;
public DirectoryInfo directoryInfo;
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: c9dd25c3ae25c904fb416d01a1c3f5e6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -11,13 +11,13 @@ namespace Studio.Setting.Connect
private APIState state; private APIState state;
public APIState State { get => state; } public APIState State { get => state; }
private string? entity; private string entity;
public string Entity { get => entity; } public string Entity { get => entity; }
private string? message; private string? message;
public string? Message { get => message; } public string? Message { get => message; }
public StudioEntityWithState(APIState state, string entity , string? message = null) public StudioEntityWithState(APIState state, string entity , string message="")
{ {
this.state = state; this.state = state;
this.entity = entity; this.entity = entity;

View File

@@ -1,6 +1,4 @@
using Newtonsoft.Json;
using System; using System;
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
@@ -8,9 +6,6 @@ namespace Studio.VirtualFactory
{ {
public class AGVNode : TwinObject public class AGVNode : TwinObject
{ {
public event Action onEnterEvent;
public event Action onExitEvent;
public List<AGVNode> linkedNodes = new(); public List<AGVNode> linkedNodes = new();
public bool reserved; public bool reserved;
public Transform nextConveyor; public Transform nextConveyor;

View File

@@ -11,8 +11,5 @@ namespace Studio.VirtualFactory
} }
public PortType portType; public PortType portType;
public Loader loader; public Loader loader;
public event Action onLoadEvent;
public event Action onUnloadEvent;
} }
} }

View File

@@ -18,7 +18,7 @@ namespace Studio.VirtualFactory
void Start() void Start()
{ {
FindObjectOfType<DataReader>().onMessageReceived += DataDistribute; FindAnyObjectByType<DataReader>().onMessageReceived += DataDistribute;
} }
public void DataDistribute(string topic, string data) public void DataDistribute(string topic, string data)

View File

@@ -19,6 +19,12 @@ namespace Studio.UI
void Awake() void Awake()
{ {
canvas = GetComponentInParent<Canvas>(); canvas = GetComponentInParent<Canvas>();
onDisableEvent += ResetAnchor;
}
void ResetAnchor(UIBase ui)
{
rectTransform.anchoredPosition = new Vector2(-Screen.width, 0);
} }
public void HandleOpenClose(AssetLibraryItem selectedItem) public void HandleOpenClose(AssetLibraryItem selectedItem)
{ {
@@ -52,10 +58,5 @@ namespace Studio.UI
rectTransform.anchoredPosition = new Vector2((float)onGetPosition?.Invoke(), pos.y); rectTransform.anchoredPosition = new Vector2((float)onGetPosition?.Invoke(), pos.y);
} }
private void OnDisable()
{
rectTransform.anchoredPosition = new Vector2(-Screen.width, 0);
}
} }
} }

View File

@@ -68,18 +68,10 @@ namespace Studio.UI
{ {
Debug.LogError("GUIWindow¿¡ Header°¡ ¾øÀ½: " + gameObject.name); Debug.LogError("GUIWindow¿¡ Header°¡ ¾øÀ½: " + gameObject.name);
} }
}
private void OnEnable() onEnableEvent += (a)=>InitializeState();
{ onDisableEvent += (a) => InitializeState();
InitializeState();
} }
private void OnDisable()
{
InitializeState();
}
public void OnPointerDown(PointerEventData eventData) public void OnPointerDown(PointerEventData eventData)
{ {
SetPanelAsLastSibling(); SetPanelAsLastSibling();

View File

@@ -40,21 +40,6 @@ namespace Studio.UVC.UI
} }
} }
private void SetPadding(LayoutGroup layoutGroup)
{
//layoutGroup.padding.
if(layoutGroup is HorizontalLayoutGroup)
{
}
switch (layoutGroup)
{
//case layoutGroup as VerticalLayoutGroup:
// break;
}
}
public void SetLayOutGroupItem<T>(List<T>items,Vector2 cellSize) public void SetLayOutGroupItem<T>(List<T>items,Vector2 cellSize)
{ {
if(!scrollRect.gameObject.TryGetComponent<GridLayoutGroup>(out var layout)) if(!scrollRect.gameObject.TryGetComponent<GridLayoutGroup>(out var layout))

View File

@@ -13,7 +13,6 @@ namespace XRLib
public static partial class Core public static partial class Core
{ {
#pragma warning disable IDE0090 // 'new(...)' 사용 #pragma warning disable IDE0090 // 'new(...)' 사용
static Queue<MonoBehaviour> watingQueue = new Queue<MonoBehaviour>();
internal static Dictionary<MonoBehaviour, GameObject> monoTable = new Dictionary<MonoBehaviour, GameObject>(); internal static Dictionary<MonoBehaviour, GameObject> monoTable = new Dictionary<MonoBehaviour, GameObject>();
internal static Dictionary<int, MonoBehaviour> singleTable = new Dictionary<int, MonoBehaviour>(); internal static Dictionary<int, MonoBehaviour> singleTable = new Dictionary<int, MonoBehaviour>();
internal static Dictionary<int, MonoBehaviour> keyTable = new Dictionary<int, MonoBehaviour>(); internal static Dictionary<int, MonoBehaviour> keyTable = new Dictionary<int, MonoBehaviour>();

View File

@@ -19,7 +19,8 @@ namespace XRLib
internal static Queue<MonoBehaviour> initializerList = new(); internal static Queue<MonoBehaviour> initializerList = new();
static Queue<MonoBehaviour> afterInitializerList = new(); static Queue<MonoBehaviour> afterInitializerList = new();
static Queue<MonoBehaviour> registWatingQueue = new(); static Queue<MonoBehaviour> registWatingQueue = new();
//[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void MonoTracking() static void MonoTracking()
{ {
while (registWatingQueue.Count > 0) while (registWatingQueue.Count > 0)

View File

@@ -11,7 +11,6 @@
"com.unity.multiplayer.center": "1.0.0", "com.unity.multiplayer.center": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.2.1", "com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.profiling.core": "1.0.2", "com.unity.profiling.core": "1.0.2",
"com.unity.project-auditor": "1.0.1",
"com.unity.render-pipelines.universal": "17.0.3", "com.unity.render-pipelines.universal": "17.0.3",
"com.unity.timeline": "1.8.7", "com.unity.timeline": "1.8.7",
"com.unity.ugui": "2.0.0", "com.unity.ugui": "2.0.0",

View File

@@ -202,16 +202,6 @@
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.project-auditor": {
"version": "1.0.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.nuget.mono-cecil": "1.10.1",
"com.unity.nuget.newtonsoft-json": "3.2.1"
},
"url": "https://packages.unity.com"
},
"com.unity.render-pipelines.core": { "com.unity.render-pipelines.core": {
"version": "17.0.3", "version": "17.0.3",
"depth": 1, "depth": 1,