@param enabled Whether resize functionality is enabled @param resizeMode Mode of resizing (Simple, Relayout, None) @param minDimensions Minimum panel dimensions (width, height) in meters @param maxDimensions Maximum panel dimensions (width, height) in meters @param preserveAspectRatio Whether to maintain aspect ratio during resize @param resizeSensitivity Sensitivity multiplier for resize drag movement @param smoothingEnabled Whether to apply temporal smoothing to resize motion @param smoothingDecayCoefficient Controls smoothing strength (higher = faster response, lower = smoother). Range: 1.0 (very smooth) to 50.0 (minimal smoothing)
class IsdkPanelResize(enabled: Boolean = true, resizeMode: ResizeMode = ResizeMode.Simple, minDimensions: Vector2 = Vector2(0.3f, 0.3f), maxDimensions: Vector2 = Vector2(1.5f, 1.5f), preserveAspectRatio: Boolean = true, resizeSensitivity: Float = 1.0f, smoothingEnabled: Boolean = true, smoothingDecayCoefficient: Float = 15.0f, activeResizeCorner: ResizeCornerState = ResizeCornerState.NONE) : ComponentBase
IsdkPanelResize
(
enabled
, resizeMode
, minDimensions
, maxDimensions
, preserveAspectRatio
, resizeSensitivity
, smoothingEnabled
, smoothingDecayCoefficient
, activeResizeCorner
)
|
Signature
constructor(enabled: Boolean = true, resizeMode: ResizeMode = ResizeMode.Simple, minDimensions: Vector2 = Vector2(0.3f, 0.3f), maxDimensions: Vector2 = Vector2(1.5f, 1.5f), preserveAspectRatio: Boolean = true, resizeSensitivity: Float = 1.0f, smoothingEnabled: Boolean = true, smoothingDecayCoefficient: Float = 15.0f, activeResizeCorner: ResizeCornerState = ResizeCornerState.NONE) Parameters
enabled:
Boolean
resizeMode:
ResizeMode
minDimensions:
Vector2
maxDimensions:
Vector2
preserveAspectRatio:
Boolean
resizeSensitivity:
Float
smoothingEnabled:
Boolean
smoothingDecayCoefficient:
Float
activeResizeCorner:
ResizeCornerState Returns |
activeResizeCorner
: ResizeCornerState
[Get][Set] |
Indicates which corner is currently being used for resize, if any
Signature
var activeResizeCorner: ResizeCornerState |
cachable
: BuildConfig.COMPONENTCACHE_LEVEL >= 1
[Get][Set] |
Signature
open override var cachable: BuildConfig.COMPONENTCACHE_LEVEL >= 1 |
enabled
: Boolean
[Get][Set] |
Whether resize functionality is enabled
Signature
var enabled: Boolean |
entID
: Long
[Get][Set] |
Signature
var entID: Long |
isDirty
: Boolean
[Get][Set] |
Signature
var isDirty: Boolean |
maxDimensions
: Vector2
[Get][Set] |
Maximum panel dimensions (width, height) in meters
Signature
var maxDimensions: Vector2 |
minDimensions
: Vector2
[Get][Set] |
Minimum panel dimensions (width, height) in meters
Signature
var minDimensions: Vector2 |
preserveAspectRatio
: Boolean
[Get][Set] |
Whether to maintain aspect ratio during resize
Signature
var preserveAspectRatio: Boolean |
recycled
: Boolean
[Get][Set] |
Signature
var recycled: Boolean |
resizeMode
: ResizeMode
[Get][Set] |
Mode of resizing: Simple (modifies scale), Relayout (adjusts dimensions and re-renders UI), or None (custom logic)
Signature
var resizeMode: ResizeMode |
resizeSensitivity
: Float
[Get][Set] |
Sensitivity multiplier for resize drag movement (higher = more sensitive)
Signature
var resizeSensitivity: Float |
smoothingDecayCoefficient
: Float
[Get][Set] |
Controls smoothing strength: higher values = faster response (less smoothing), lower values = smoother motion (more lag). Recommended range: 1.0-50.0
Signature
var smoothingDecayCoefficient: Float |
smoothingEnabled
: Boolean
[Get][Set] |
Whether to apply temporal smoothing to resize motion (reduces jitter, adds slight lag)
Signature
var smoothingEnabled: Boolean |
timeStamp
: Long
[Get][Set] |
Signature
var timeStamp: Long |
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 |
activeResizeCornerData
: EnumAttributeData
[Get] |
Signature
val activeResizeCornerData: EnumAttributeData |
activeResizeCornerId
[Get] |
Signature
val activeResizeCornerId: |
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 |
createDefaultInstance
: Function0
[Get] |
Signature
open override val createDefaultInstance: () -> IsdkPanelResize |
enabledData
: BooleanAttributeData
[Get] |
Signature
val enabledData: BooleanAttributeData |
enabledId
[Get] |
Signature
val enabledId: |
enumClassesMap_
: Map
[Get] |
Signature
val enumClassesMap_: Map<Int, Class<out Enum<*>>> |
id
[Get] |
Signature
open override val id: |
keyStringToKeyIntMap_
: Map
[Get] |
Signature
val keyStringToKeyIntMap_: Map<String, Int> |
maxDimensionsData
: Vector2AttributeData
[Get] |
Signature
val maxDimensionsData: Vector2AttributeData |
maxDimensionsId
[Get] |
Signature
val maxDimensionsId: |
minDimensionsData
: Vector2AttributeData
[Get] |
Signature
val minDimensionsData: Vector2AttributeData |
minDimensionsId
[Get] |
Signature
val minDimensionsId: |
preserveAspectRatioData
: BooleanAttributeData
[Get] |
Signature
val preserveAspectRatioData: BooleanAttributeData |
preserveAspectRatioId
[Get] |
Signature
val preserveAspectRatioId: |
resizeModeData
: EnumAttributeData
[Get] |
Signature
val resizeModeData: EnumAttributeData |
resizeModeId
[Get] |
Signature
val resizeModeId: |
resizeSensitivityData
: FloatAttributeData
[Get] |
Signature
val resizeSensitivityData: FloatAttributeData |
resizeSensitivityId
[Get] |
Signature
val resizeSensitivityId: |
smoothingDecayCoefficientData
: FloatAttributeData
[Get] |
Signature
val smoothingDecayCoefficientData: FloatAttributeData |
smoothingDecayCoefficientId
[Get] |
Signature
val smoothingDecayCoefficientId: |
smoothingEnabledData
: BooleanAttributeData
[Get] |
Signature
val smoothingEnabledData: BooleanAttributeData |
smoothingEnabledId
[Get] |
Signature
val smoothingEnabledId: |
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?
|