AttachmentPanelComponent

class AttachmentPanelComponent(context: Context, width: Int = WRAP_CONTENT, height: Int = WRAP_CONTENT, alignment: AttachmentPanelComponent.Alignment = Alignment.UNSPECIFIED) : Component

Component that allows attaching a 2D Android View to an Entity in spatial space.

Parameters

context

The Android context.

width

The width of the panel. Defaults to WRAP_CONTENT.

height

The height of the panel. Defaults to WRAP_CONTENT.

alignment

The alignment of the panel relative to the entity.

Constructors

Link copied to clipboard
constructor(context: Context, width: Int = WRAP_CONTENT, height: Int = WRAP_CONTENT, alignment: AttachmentPanelComponent.Alignment = Alignment.UNSPECIFIED)

Types

Link copied to clipboard

The anchor point of the AttachmentPanelComponent.

Link copied to clipboard
object Companion

Provides some static values or functions for AttachmentPanelComponent.

Properties

Link copied to clipboard
var content: View?

The 2D Android View content to be displayed on this panel.

Functions

Link copied to clipboard
open override fun clone(): Component

Creates and returns a copy of this Component instance.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String