最終更新:2022-07-14 (木) 08:33:51 (978d)
Babylon.js/アクション
Top / Babylon.js / アクション
https://doc.babylonjs.com/divingDeeper/events/actions
マネージャ
BABYLON.ActionManager
- シーンかメッシュにアタッチする
BABYLON.ActionManager.registerAction
アクション
- トリガかかったときに実行される
BABYLON.IAction
BABYLON.Action The action to be carried out following a trigger Action(triggerOptions: any, condition?: Condition): Action BABYLON.CombineAction This 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.InterpolateValueAction This 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.SetStateAction This defines an action responsible to set a the state field of the target to a desired value once triggered. BABYLON.SetValueAction This 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.
条件
- BABYLON.Condition
BABYLON.ValueCondition Defines specific conditional operators as extensions of Condition BABYLON.PredicateCondition Defines a predicate condition as an extension of Condition BABYLON.StateCondition Defines a state condition as an extension of Condition