Merge branch 'sjm/250324' into sjm/250325
# Conflicts: # Assets/Scripts/Studio/TwinObject/TwinObject.cs
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user