Visual dimensions are hardcoded (66dp edges, 52dp resize corners). Collision widths/sizes directly set collider dimensions in native layer. @param grabHandleCollisionWidths Collision widths for edge and grab corner hitboxes (left, top, right, bottom) in meters - Android Rect order. These values directly set collider widths. @param resizeCornerCollisionSizes Collision sizes for resize corner hitboxes (TL, TR, BR, BL) in meters - clockwise from top-left. These values directly set collider sizes. @param resizeCornerCollisionInset Moves resize corner colliders inward toward panel center (meters). Default 0.005m (6dp) matches hardcoded visual overlap. Does not affect viual. @param outset Outset from panel edges (left, top, right, bottom) in meters - Android Rect order. Positive values expand grab area outward from each edge independently. @param zOffset Front/back offset distance from panel surface in meters. Positive values move handles forward (toward user), negative values move backward. @param color Base color for handle segments (RGBA). 233/255 = 0.9137 for light gray. @param scaleFactor Scale factor for handle segments and outsets (width, height). Set to panel scale for uniform scaling, or (1, 1) for constant-size handles.
class IsdkPanelGrabHandle(grabHandleCollisionWidths: Vector4 = Vector4(0.061f, 0.061f, 0.061f, 0.061f), resizeCornerCollisionSizes: Vector4 = Vector4(0.105f, 0.105f, 0.105f, 0.105f), resizeCornerCollisionInset: Float = 0.015f, outset: Vector4 = Vector4(0.0f, 0.0f, 0.0f, 0.0f), zOffset: Float = 0.0f, color: Vector4 = Vector4(0.9137f, 0.9137f, 0.9137f, 1.0f), scaleFactor: Vector2 = Vector2(1.0f, 1.0f)) : ComponentBase
IsdkPanelGrabHandle
(
grabHandleCollisionWidths
, resizeCornerCollisionSizes
, resizeCornerCollisionInset
, outset
, zOffset
, color
, scaleFactor
)
|
Signature
constructor(grabHandleCollisionWidths: Vector4 = Vector4(0.061f, 0.061f, 0.061f, 0.061f), resizeCornerCollisionSizes: Vector4 = Vector4(0.105f, 0.105f, 0.105f, 0.105f), resizeCornerCollisionInset: Float = 0.015f, outset: Vector4 = Vector4(0.0f, 0.0f, 0.0f, 0.0f), zOffset: Float = 0.0f, color: Vector4 = Vector4(0.9137f, 0.9137f, 0.9137f, 1.0f), scaleFactor: Vector2 = Vector2(1.0f, 1.0f)) Parameters Returns |
cachable
: BuildConfig.COMPONENTCACHE_LEVEL >= 1
[Get][Set] |
Signature
open override var cachable: BuildConfig.COMPONENTCACHE_LEVEL >= 1 |
color
: Vector4
[Get][Set] |
Base color for handle segments (RGBA). 233/255 = 0.9137 for light gray.
Signature
var color: Vector4 |
entID
: Long
[Get][Set] |
Signature
var entID: Long |
grabHandleCollisionWidths
: Vector4
[Get][Set] |
Collision widths for edge and grab corner hitboxes (left, top, right, bottom) in meters - Android Rect order. These values directly set collider widths.
Signature
var grabHandleCollisionWidths: Vector4 |
isDirty
: Boolean
[Get][Set] |
Signature
var isDirty: Boolean |
outset
: Vector4
[Get][Set] |
Outset from panel edges (left, top, right, bottom) in meters - Android Rect order. Positive values expand grab area outward from each edge independently.
Signature
var outset: Vector4 |
recycled
: Boolean
[Get][Set] |
Signature
var recycled: Boolean |
resizeCornerCollisionInset
: Float
[Get][Set] |
Moves resize corner colliders inward toward panel center (meters). Default 0.005m (6dp) matches hardcoded visual overlap. Does not affect viual.
Signature
var resizeCornerCollisionInset: Float |
resizeCornerCollisionSizes
: Vector4
[Get][Set] |
Collision sizes for resize corner hitboxes (TL, TR, BR, BL) in meters - clockwise from top-left. These values directly set collider sizes.
Signature
var resizeCornerCollisionSizes: Vector4 |
scaleFactor
: Vector2
[Get][Set] |
Scale factor for handle segments and outsets (width, height). Set to panel scale for uniform scaling, or (1, 1) for constant-size handles.
Signature
var scaleFactor: Vector2 |
timeStamp
: Long
[Get][Set] |
Signature
var timeStamp: Long |
zOffset
: Float
[Get][Set] |
Front/back offset distance from panel surface in meters. Positive values move handles forward (toward user), negative values move backward.
Signature
var zOffset: Float |
companion
()
|
Gets the companion object for this component.
The companion object provides metadata about the component.
Signature
open override fun companion(): ComponentCompanion Throws
RuntimeException
|
getComponentDataAttributeType
(
key
)
|
Gets the attribute type for the specified key.
Signature
fun getComponentDataAttributeType(key: Int): AttributePrimitive? Parameters
key:
Int
|
getComponentDataAttributeType
(
keyString
)
|
Gets the attribute type for the specified string key.
Signature
fun getComponentDataAttributeType(keyString: String): AttributePrimitive? Parameters
keyString:
String
Throws
IllegalArgumentException
|
getComponentDataKey
(
key
)
|
Gets the integer key associated with the specified string key.
Signature
fun getComponentDataKey(key: String): Int? Parameters
key:
String
Returns
Int?
|
getComponentDataValue
(
key
)
|
Gets the value for the specified key.
Signature
fun getComponentDataValue(key: Int): Any? Parameters
key:
Int
Returns
Any?
|
getComponentDataValue
(
keyString
)
|
Gets the value for the specified string key.
Signature
fun getComponentDataValue(keyString: String): Any? Parameters
keyString:
String
Returns
Any?
Throws
IllegalArgumentException
|
getEnumClass
(
key
)
|
Gets the enum class associated with the specified string key.
Signature
fun getEnumClass(key: String): Class<out Enum<*>>? Parameters
key:
String
Returns
Class?
|
hasComponentData
(
key
)
|
Checks if this component has data for the specified key.
Signature
fun hasComponentData(key: Int): Boolean Parameters
key:
Int
Returns
Boolean
|
hasComponentData
(
keyString
)
|
Checks if this component has data for the specified string key.
Signature
fun hasComponentData(keyString: String): Boolean Parameters
keyString:
String
Returns
Boolean
|
read
(
e
, cachable
)
|
Reads component data from the specified entity.
Signature
fun read(e: Entity, cachable: Boolean) Parameters
cachable:
Boolean
|
recycle
()
|
Recycles this component by returning it to its pool.
If the component has a pool assigned, it will be returned to that pool for reuse.
Signature
fun recycle() |
reset
()
|
Resets the component to its default state.
This method is called when a component is recycled to clear any state. Subclasses should override this method to reset their specific state.
Signature
open fun reset() |
setComponentDataValue
(
key
, value
)
|
Sets the value for the specified key.
Signature
fun setComponentDataValue(key: Int, value: Any): Boolean Parameters
key:
Int
value:
Any
Returns
Boolean
|
setComponentDataValue
(
keyString
, value
)
|
Sets the value for the specified string key.
Signature
fun setComponentDataValue(keyString: String, value: Any): Boolean Parameters
keyString:
String
value:
Any
Returns
Boolean
|
setPool
(
pool
, entID
)
|
Sets the component pool and entity ID for this component.
This is used for component recycling to track which pool the component belongs to and which entity it was associated with.
Signature
fun setPool(pool: ComponentPool<*>, entID: Long) Parameters
pool:
ComponentPool
entID:
Long
|
toString
()
|
Signature
open override fun toString(): String Returns
String
|
typeID
()
|
Returns the unique type ID of this component.
Each component type must have a unique ID for identification in the entity-component system.
Signature
open override fun typeID(): Int Returns
Int
|
write
(
e
)
|
Writes this component's data to the specified entity.
Signature
fun write(e: Entity) Parameters |
attributeKeys_
: IntArray
[Get] |
Signature
val attributeKeys_: IntArray |
attributeTypeCounts_
: IntArray
[Get] |
Signature
val attributeTypeCounts_: IntArray |
attributeTypes_
: IntArray
[Get] |
Signature
val attributeTypes_: IntArray |
attrMetaData_
: Map
[Get] |
Signature
val attrMetaData_: Map |
colorData
: Vector4AttributeData
[Get] |
Signature
val colorData: Vector4AttributeData |
colorId
[Get] |
Signature
val colorId: |
createDefaultInstance
: Function0
[Get] |
Signature
open override val createDefaultInstance: () -> IsdkPanelGrabHandle |
enumClassesMap_
: Map
[Get] |
Signature
val enumClassesMap_: Map<Int, Class<out Enum<*>>> |
grabHandleCollisionWidthsData
: Vector4AttributeData
[Get] |
Signature
val grabHandleCollisionWidthsData: Vector4AttributeData |
grabHandleCollisionWidthsId
[Get] |
Signature
val grabHandleCollisionWidthsId: |
id
[Get] |
Signature
open override val id: |
keyStringToKeyIntMap_
: Map
[Get] |
Signature
val keyStringToKeyIntMap_: Map<String, Int> |
outsetData
: Vector4AttributeData
[Get] |
Signature
val outsetData: Vector4AttributeData |
outsetId
[Get] |
Signature
val outsetId: |
resizeCornerCollisionInsetData
: FloatAttributeData
[Get] |
Signature
val resizeCornerCollisionInsetData: FloatAttributeData |
resizeCornerCollisionInsetId
[Get] |
Signature
val resizeCornerCollisionInsetId: |
resizeCornerCollisionSizesData
: Vector4AttributeData
[Get] |
Signature
val resizeCornerCollisionSizesData: Vector4AttributeData |
resizeCornerCollisionSizesId
[Get] |
Signature
val resizeCornerCollisionSizesId: |
scaleFactorData
: Vector2AttributeData
[Get] |
Signature
val scaleFactorData: Vector2AttributeData |
scaleFactorId
[Get] |
Signature
val scaleFactorId: |
zOffsetData
: FloatAttributeData
[Get] |
Signature
val zOffsetData: FloatAttributeData |
zOffsetId
[Get] |
Signature
val zOffsetId: |
attributeKeys
()
|
Signature
open override fun attributeKeys(): IntArray Returns
IntArray
|
attributeMetaData
()
| Returns
Map
|
attributeTypeCountAvailable
()
|
Signature
open override fun attributeTypeCountAvailable(): Boolean Returns
Boolean
|
attributeTypeCounts
()
|
Signature
open override fun attributeTypeCounts(): IntArray Returns
IntArray
|
attributeTypes
()
|
Signature
open override fun attributeTypes(): IntArray Returns
IntArray
|
dependents
()
|
Signature
open fun dependents(): IntArray Returns
IntArray
|
enumClassesMap
()
|
Signature
open override fun enumClassesMap(): Map<Int, Class<out Enum<*>>> Returns
Map
|
keyStringToKeyIntMap
(
keyString
)
|
Signature
open override fun keyStringToKeyIntMap(keyString: String): Int? Parameters
keyString:
String
Returns
Int?
|