Stay organized with collections
Save and categorize content based on your preferences.
class ContentlessEntity : BaseEntity
An Entity that itself has no content. ContentlessEntity is useful for organizing the placement, movement of a group of SceneCore Entities.
Summary
Public companion functions |
Entity |
Public factory function for creating a content-less entity.
|
Inherited functions |
From androidx.xr.scenecore.ActivityPose
abstract Pose |
Returns the activity space pose for this ActivityPose.
|
abstract ListenableFuture<HitTestResult> |
Creates a hit test from the specified origin in the specified direction into the scene.
|
abstract ListenableFuture<HitTestResult> |
Creates a hit test from the specified origin in the specified direction into the scene.
|
abstract Pose |
Returns a pose relative to this ActivityPose transformed into a pose relative to the destination.
|
|
From androidx.xr.scenecore.BaseEntity
open Unit |
Sets an Entity to be represented in this coordinate space.
|
open Boolean |
Adds a Component to this Entity.
|
open Unit |
Disposes of any system resources held by this Entity, and transitively calls dispose() on all its children.
|
open Float |
Returns the alpha transparency set for this Entity, relative to given space.
|
open List<Component> |
Retrieves all components attached to this Entity.
|
open List<T> |
Retrieves all Components of the given type T and its sub-types attached to this Entity.
|
open Entity? |
Returns the parent of this Entity.
|
open Pose |
Returns the pose for this entity, relative to the provided space.
|
open Float |
Returns the scale of this entity, relative to given space.
|
open Boolean |
Returns the hidden status of this Entity.
|
open Unit |
Remove all components from this Entity.
|
open Unit |
Removes the given Component from this Entity.
|
open Unit |
Sets the alpha transparency of the Entity relative to given space.
|
open Unit |
Sets alternate text for this entity to be consumed by Accessibility systems.
|
open Unit |
Sets the local hidden state of this Entity.
|
open Unit |
Sets this Entity to be represented in the parent's coordinate space.
|
open Unit |
Sets the pose for this Entity.
|
open Unit |
Sets the scale of this entity relative to given space.
|
|
From androidx.xr.scenecore.Entity
open Float |
Returns the alpha transparency set for this Entity.
|
open Pose |
Returns the pose for this entity, relative to its parent.
|
open Float |
Returns the local scale of this entity, not inclusive of the parent's scale.
|
open Unit |
Sets the alpha transparency of the Entity and its children.
|
open Unit |
Sets the pose for this Entity, relative to its parent.
|
open Unit |
Sets the scale of this entity relative to its parent.
|
|
Public companion functions
fun create(session: Session, name: String, pose: Pose = Pose.Identity): Entity
Public factory function for creating a content-less entity. This entity is used as a connection point for attaching children entities and managing them (i.e. setPose()) as a group.
Parameters |
session: Session |
Session to create the ContentlessEntity in.
|
name: String |
Name of the entity.
|
pose: Pose = Pose.Identity |
Initial pose of the entity.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]