Eyelashes3D
Dynamic component for 3D eyelash rendering on face meshes.
| Type | Name | Interface Description |
|---|---|---|
| Functions | constructor() | |
| Functions | getProperty(type: Eyelashes3DPropertyKey, scope: Eyelashes3DScopeKey): any | • Function: Retrieves a single eyelash property. Parameters • • Returns Single value for 'Left'/'Right'; [left, right] array for 'Both'. Returns undefined when type is invalid or scope is unrecognized. The runtime type of each value follows the property key — see . |
| Functions | restoreInitialPose(): void | |
| Functions | setProperty(type: Eyelashes3DPropertyKey, scope: Eyelashes3DScopeKey, value: any): void | • Function: Sets a single eyelash property. Silent failure: returns void with no error when value type mismatches the expected type, or when scope is 'Both' but value is not an array of length 2. Parameters • • • |
Examples
constructor()
let obj = new APJS.Eyelashes3D();
getProperty(type: Eyelashes3DPropertyKey, scope: Eyelashes3DScopeKey): any
const [leftOp, rightOp] = comp.getProperty('Opacity', 'Both') as [number, number];
const leftCurl = comp.getProperty('Curl', 'Left');
setProperty(type: Eyelashes3DPropertyKey, scope: Eyelashes3DScopeKey, value: any): void
comp.setProperty('GradientMode', 'Both', [0, 0]); // Horizontal on both eyes
comp.setProperty('Curl', 'Left', 0.5); // curl left eye only
comp.setProperty('BlinkRotation', 'Both', [15, 15]); // 15 degrees both eyes
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Eyelashes3D here
}
onUpdate(deltaTime: number) {
}
}