Table of Contents

Class UITKInspect

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

A read-only view of another player character, drawn on the shared character sheet.

public class UITKInspect : UITKControl
Inheritance
Object
Component
Behaviour
MonoBehaviour
UITKInspect
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

This window and the player's own equipment panel mount the SAME markup — UICharacterSheet.uxml — and show the same three regions. They were separate files once and drifted: this one was a 300px window holding a wrapping row of 44px sockets that read nothing like the sheet beside it. The sheet is now the one description of what a character is wearing, and what differs between the two windows is applied at runtime and nothing else: the sheet--inspect placement class, and a CharacterSheetOptions that withholds the attribute list.

Why this does not derive from UITKSlotPanelBase. That class is an operation tracker, not a drawing kit: its OwnContainer, IsSlotBlocked and ApplySlotLockVisual all resolve the LOCAL player, which UIManager hands to every UITKCharacterControl it enrols with no way to opt out. Inheriting it would silently give this window the local player's containers, locks and in-flight equip state while it is showing somebody else. So the sharing is composition — CharacterSheetView for the display and UITKSlotPainter for the sockets — and the sockets here carry no press, drag or drop handler at all. The read-only-ness is structural, not a flag that some path could forget to check.

Movable, and it needs to be. The screen is fully tiled at 1200 units — sheet, bank and bag — so a 520px inspect window cannot help but cover part of them, and a covered UI Toolkit window is deaf rather than hidden. The sheet is centred by default and the player drags it clear; that costs nothing here because CanDrag already defaults true and the shared header is already name="panel-header", which is the resolved drag handle. Like every draggable panel, a dragged position is remembered (UITKPanelPositions) and restored when the window next opens; closing it does not put it back in the middle.

The preview shows an unarmed body, and cannot help it. An observed character's race model is real and correctly instantiated for observers, but no equipment geometry is ever built for a character you do not own — EquipmentVisualController.OnStartCharacter is the only thing that creates it and it runs from an IsOwner-gated fan-out. Their gear reads correctly in the sockets beside the viewport, which is why the viewport label is left as authored rather than promising a dressed model. Making remote gear render is a separate change.

Methods

Hide(bool)

Hides the panel and forgets the inspected character.

public override void Hide(bool overrideIsAlwaysOpen)

Parameters

overrideIsAlwaysOpen bool

Remarks

Overrides Hide(bool), not Hide(). Hide() is non-virtual and only forwards here, so this is the one place teardown can live where every caller reaches it — quit-to-login calls the bool form directly.

Inspect(IPlayerCharacter)

Populates the sheet with the target player's data and shows it.

public void Inspect(IPlayerCharacter target)

Parameters

target IPlayerCharacter

The player character to inspect.

OnAfterStarting()

Rebuilds the panel from the last inspected character after a tree rebuild.

protected override void OnAfterStarting()

OnDestroying()

Releases the preview camera and texture with the panel.

public override void OnDestroying()

OnStarting()

Resolves the sheet, applies the inspect placement, and wires the close button.

public override void OnStarting()

OnTick()

Keeps the panel honest about the character it is showing.

protected override void OnTick()

Remarks

A remote character leaves range, despawns and is pooled, and the reference this panel holds then means nothing: the preview camera and MeshRoot would be handed to a different player underneath it, and the sockets would go on showing gear nobody is wearing. The panel has no server notification for that — the character simply stops being replicated — so it revalidates the subject itself and closes when the subject is gone.