最終更新:2021-07-08 (木) 14:56:45 (26d)  

Babylon.js/アクション
Top / Babylon.js / アクション

https://doc.babylonjs.com/divingDeeper/events/actions

マネージャ

BABYLON.ActionManager

  • シーンかメッシュにアタッチする

BABYLON.ActionManager.registerAction

アクション

  • トリガかかったときに実行される

BABYLON.IAction

  • BABYLON.ActionThe action to be carried out following a triggerAction(triggerOptions: any, condition?: Condition): Action
    BABYLON.CombineActionThis defines an action responsible to trigger several actions once triggered.CombineAction?(triggerOptions: any, children: Action[], condition?: Condition): CombineAction?
    BABYLON.DoNothingAction?This defines an action responsible that does nothing once triggered.
    BABYLON.ExecuteCodeAction
    BABYLON.IncrementValueAction?
    BABYLON.InterpolateValueActionThis defines an action responsible to change the value of a property by interpolating between its current value and the newly set one once triggered.InterpolateValueAction?(triggerOptions: any, target: any, propertyPath: string, value: any, duration?: number, condition?: Condition, stopOtherAnimations??: boolean, onInterpolationDone??: () => void):
    BABYLON.PlayAnimationAction?
    BABYLON.PlaySoundAction?
    BABYLON.SetParentAction?
    BABYLON.SetStateActionThis defines an action responsible to set a the state field of the target to a desired value once triggered.
    BABYLON.SetValueActionThis defines an action responsible to set a property of the target to a desired value once triggered.
    BABYLON.StopAnimationAction?
    BABYLON.StopSoundAction?
    BABYLON.SwitchBooleanAction?

トリガ

  • BABYLON.ActionManager.NothingTrigger?Never raised. Used for sub-actions with action.then function.
    BABYLON.ActionManager.OnPickTrigger?Raised when the user touches/clicks on a mesh.
    BABYLON.ActionManager.OnDoublePickTrigger?Raised when the user double touches/clicks on a mesh.
    BABYLON.ActionManager.OnPickDownTrigger?Raised when the user touches/clicks down on a mesh
    BABYLON.ActionManager.OnPickUpTrigger?Raised when the user touches/clicks up on a mesh.
    BABYLON.ActionManager.OnPickOutTrigger?Raised when the user touches/clicks down on a mesh and then move off-of the mesh.
    BABYLON.ActionManager.OnLeftPickTrigger?Raised when the user touches/clicks on a mesh with left button.
    BABYLON.ActionManager.OnRightPickTrigger?Raised when the user touches/clicks on a mesh with right button.
    BABYLON.ActionManager.OnCenterPickTrigger?Raised when the user touches/clicks on a mesh with center button.
    BABYLON.ActionManager.OnLongPressTrigger?Raised when the user touches/clicks up on a mesh for a long period of time in milliseconds (defined by BABYLON.Scene.LongPressDelay?).
    BABYLON.ActionManager.OnPointerOverTrigger?Raised when the pointer is over a mesh. Raised just once.
    BABYLON.ActionManager.OnPointerOutTrigger?Raised when the pointer is no more over a mesh. Raised just once.
    BABYLON.ActionManager.OnIntersectionEnterTrigger?Raised when the mesh is in intersection with a specific mesh. Raised just once.
    BABYLON.ActionManager.OnIntersectionExitTrigger?Raised when the mesh is no more in intersection with a specific mesh. Raised just once.

条件