mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
36 lines
971 B
C#
36 lines
971 B
C#
![]() |
using UnityEngine;
|
|||
|
using UnityExplorer.Inspectors;
|
|||
|
|
|||
|
namespace UnityExplorer.UI.Widgets
|
|||
|
{
|
|||
|
// The base wrapper to hold a reference to the parent Inspector and the GameObjectInfo and TransformControls widgets.
|
|||
|
|
|||
|
public class GameObjectControls
|
|||
|
{
|
|||
|
public GameObjectInspector Parent { get; }
|
|||
|
public GameObject Target => Parent.Target;
|
|||
|
|
|||
|
public GameObjectInfoPanel GameObjectInfo { get; }
|
|||
|
|
|||
|
public TransformControls TransformControl { get; }
|
|||
|
|
|||
|
public GameObjectControls(GameObjectInspector parent)
|
|||
|
{
|
|||
|
this.Parent = parent;
|
|||
|
|
|||
|
this.GameObjectInfo = new(this);
|
|||
|
this.TransformControl = new(this);
|
|||
|
}
|
|||
|
|
|||
|
public void UpdateGameObjectInfo(bool firstUpdate, bool force)
|
|||
|
{
|
|||
|
GameObjectInfo.UpdateGameObjectInfo(firstUpdate, force);
|
|||
|
}
|
|||
|
|
|||
|
public void UpdateVectorSlider()
|
|||
|
{
|
|||
|
TransformControl.UpdateVectorSlider();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|