Merge branch 'sjm/250324' into sjm/250325

# Conflicts:
#	Assets/Scripts/Studio/TwinObject/TwinObject.cs
This commit is contained in:
jmaniuvc
2025-03-25 10:55:09 +09:00
2 changed files with 3 additions and 11 deletions

View File

@@ -36,16 +36,13 @@ namespace XED.Asset
public CustomAssetEventHandler assetEventHandler;
public CustomAssetCommandHandler assetCommandHandler;
Panel_InterferedObjectList panel_InterferedObjectList;
void Awake()
{
saveLoadFBXData = FindFirstObjectByType<SaveLoadFBXData>();
renderObjectHandler = FindFirstObjectByType<RenderObjectHandler>();
assetDataHandler = new CustomAssetDataHandler(this);
assetEventHandler = new CustomAssetEventHandler(this);
assetCommandHandler = new CustomAssetCommandHandler(this);
panel_InterferedObjectList = FindAnyObjectByType<Panel_InterferedObjectList>();
assetCommandHandler = new CustomAssetCommandHandler(this);
}
void Start()
{
@@ -112,12 +109,6 @@ namespace XED.Asset
selectRenderObject.CreateRenderObject();
selectRenderObject.Select();
selectedAssetData.AddTransformToRender(selectedItem.transform);
TwinObject selectedTwinObject = selectedItem.GetComponent<TwinObject>();
if (selectedTwinObject != null)
{
selectedTwinObject.OnTwinConflictEvent += panel_InterferedObjectList.CreateContentButton;
selectedTwinObject.OnTwinDeconflictEvent += panel_InterferedObjectList.RemoveContentButton;
}
}
public void OnAssetDropped(HierarchyItem item)
{

View File

@@ -1,11 +1,12 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using XRLib;
using XRLib.UI;
namespace XED.UI
{
public class Panel_InterferedObjectList : PanelBase
public class Panel_InterferedObjectList : PanelBase, ISingle
{
Button Button_Close;
RectTransform content;