EyeColor
APJS Script API reference for the EyeColor class.
| Type | Name | Interface Description |
|---|---|---|
| Variables | applyingScope: EyeApplyingScope | • Function: The scope to apply the eye color effect to, can be both eyes, left eye, or right eye. |
| Variables | color: Color | • Function: Base color of the eyes, used in combination with the makeup texture. |
| Variables | intensity: number | • Function: The intensity of the eye color effect. Higher values make the color effect more prominent. Range [0.0, 1.0] |
| Variables | isOpacityEnabled: boolean | • Function: Whether opacity effect is enabled. |
| Variables | isReflectionEnabled: boolean | • Function: Whether reflection effect is enabled. |
| Variables | makeupTexture: Texture | null | • Function: Makeup texture used to define the eye color effect. |
| Variables | opacityTexture: Texture | null | • Function: Opacity texture used to control transparency in different eye regions. |
| Variables | reflectionIntensity: number | • Function: The intensity of the reflection effect. Range [0.0, 1.0] |
| Variables | reflectionTexture: Texture | null | • Function: Reflection texture used to simulate eye shine effects. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.EyeColor();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use EyeColor here
}
onUpdate(deltaTime: number) {
}
}