This commit is contained in:
2025-04-23 01:18:06 +08:00
parent 83d52181f5
commit 0ea2281199
93 changed files with 8954 additions and 8943 deletions

View File

@@ -28,6 +28,18 @@ public:
/** Handle mouse clicks - new API */
virtual bool InputKey(const FInputKeyEventArgs& EventArgs) override;
/** Override mouse movement handling to provide camera controls similar to asset editor */
virtual bool InputAxis(FViewport* InViewport, int32 ControllerId, FKey Key, float Delta, float DeltaTime, int32 NumSamples = 1, bool bGamepad = false) override;
/** Load and display objects from NodeTree */
void LoadNodesFromNodeTree();
/** Update objects displayed in the viewport */
void UpdateVisibleNodes();
/** Focus on the selected object */
void FocusOnSelectedNode();
/** Reset camera */
void ResetCamera();
@@ -52,4 +64,7 @@ private:
/** Preview scene for the viewport */
TSharedPtr<FPreviewScene> PreviewScene;
/** Recursively load node and its children */
void LoadNodeRecursive(TSharedPtr<FVisceraNodeItem> Node, USceneComponent* ParentComponent);
};