Skip to content
Project referenceDevelopmentEngine ccf7d03f
Authored
  • Target inspection, generation-safe locking, scene element operations and typed reference drops.

Target inspection, generation-safe locking, scene element operations and typed reference drops.

Inspector tasks explain target locking, Transform spaces, component/system cards, tags/layers and reference assignment. Drawer extensions belong to the reusable Inspection project; this panel contributes its window, header, scene actions and drop targets.

Retain identity rather than an old instance

Section titled “Retain identity rather than an old instance”

Locking retains a resolvable persistent identity for scene targets and weak references for other collectible targets. It does not change Selection. Failure to resolve unlocks. Play selection resolves runtime copies, whose edits use temporary History and cannot persist.

All data mutation routes through SceneEdits, including enabled state, order, Reset/Remove and root-property changes. Transform world editing records actual local deltas and fails visibly for noninvertible parents. Asset drops use typed compatibility checks and persistent item IDs; short source-qualified display names do not replace full path provenance.

Header/property/card layout shares one vertical scroll owner and constrained width. Generic drawers and registries are not duplicated here; shared settings/icon services provide consistent appearance.

These use the actual host contracts and borrowed live dependencies. They do not initialize a product or establish lifecycle/device acceptance.

using System;
using Inno.Assets;
using Inno.Editor.Inspection;
[InspectionDrawer(typeof(TextAsset), priority: 100)]
public sealed class TextAssetDrawer : InspectionDrawer<TextAsset>
{
public override string icon => "T";
protected override (string name, Action<string>? setter) BindName(
InspectionDrawContext context,
TextAsset target
) => (target.name, null);
protected override void Draw(
InspectionDrawContext context,
TextAsset target
) {
context.DrawProperties();
}
}

Source project. Declarations, script selection and runtime behavior require separate matching evidence.

Types and exact member contracts retain the engine-owned declarations and captured XML.

The compiler-selected script declarations are separate from this project’s host CLR surface. Read the script calling guide and the associated module contracts before using a projected member.

Project: Inno.Editor.Panel.Inspector
Source: src/composition/editor/panels/Inno.Editor.Panel.Inspector/Inno.Editor.Panel.Inspector.csproj

Type API Description
AssetReferenceDropTarget engine Borrows an asset property’s type and assignment callback for one synchronous drop request.
EngineObjectReferenceDropTarget engine Borrows an object property’s type and assignment callback for one synchronous drop request.
AssetReferenceDropTarget Editor Borrows an asset property’s type and assignment callback for one synchronous drop request.
EngineObjectReferenceDropTarget Editor Borrows an object property’s type and assignment callback for one synchronous drop request.