Skip to main content

Editor

Complete API reference for Editor, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Editor

Component: no


public class Editor

Static Methods

SignatureReturnsDescription
isEditor()booleanIndicates whether it's in editor mode, useful for editor-only logic.
getSelectedObject()SpatialObjectReturns the selected object in the editor.
setSelectedObject(SpatialObject)voidSets the selected object in the editor.
inflateAnchoredFloatingPanel(View, AnchorSide, EditorPanel)FloatingPanelAreaCreates a floating panel anchored to the specified view.
inflateAnchoredFloatingPanel(View, AnchorSide, EditorPanel, float, float)FloatingPanelAreaCreates a floating panel anchored to the specified view, with the given width and height (0.0f - 1.0f).
inflateAnchoredFloatingPanelInDP(View, AnchorSide, EditorPanel, int, int)FloatingPanelAreaCreates a floating panel anchored to the specified view, with the given width and height in dp.
inflateFloatingPanel(EditorPanel, float, float, float, float)FloatingPanelAreaCreates a floating panel at the specified position with given width and height (0.0f - 1.0f).
inflateFloatingPanel(EditorPanel, float, float)FloatingPanelAreaCreates a centered floating panel with the specified width and height (0.0f - 1.0f).
inflateFloatingPanelInDP(EditorPanel, int, int, int, int)FloatingPanelAreaCreates a floating panel at the specified position with given width and height in dp.
inflateFloatingPanelInDP(EditorPanel, int, int)FloatingPanelAreaCreates a centered floating panel with the specified width and height in dp.
dpToWidthPercentage(int)floatConverts dp value to width percentage (0.0f - 1.0f) based on screen size.
dpToHeightPercentage(int)floatConverts dp value to height percentage (0.0f - 1.0f) based on screen size.
pxToWidthPercentage(int)floatConverts px value to width percentage (0.0f - 1.0f) based on screen size.
pxToHeightPercentage(int)floatConverts px value to height percentage (0.0f - 1.0f) based on screen size.
findViewByID(View, String)<T extends View> TFinds a child view with the given ID inside the specified view hierarchy.
toView(Object)ViewReturns the given object casted as a View.
getIdOf(View)StringReturns the ID of the view (without prefix).