Difference の変更点

Top > Difference

TITLE:VRC_Triggerとの差異

**VRC_Trigger機能対応表 [#ie2a177d]

***Trigger [#qbcc6d95]
|''VRC_Trigger''|''Trigger2to3''|''備考''|
|Custom|CustomTrigger||
|OnAvatarHit|OnEnterCollider|Layers =Player , PlayerLocal&br;ただし、少し挙動が違っていて、&br;物体が物理移動している必要がある|
|OnAvatarHit|OnEnterCollider|Layers =Player , PlayerLocal&br;ただし、物体が物理移動している必要がある|
|&size(16){OnDestroy};|&size(16){OnDestroy};||
|OnDisable|OnDisable||
|OnDrop|OnDrop||
|OnEnable|OnEnable||
|OnEnterCollider|OnEnterCollider||
|OnEnterTrigger|OnEnterTrigger||
|OnExitCollider|OnExitCollider||
|OnExitTrigger|OnExitTrigger||
|OnKeyDown|OnKeyDown||
|OnKeyUp|OnKeyUp||
|OnNetworkReady|OnNetworkReady||
|OnOwnershipTransfer|OnOwnershipTransfer||
|OnParticleCollision|OnParticleCollision||
|OnPickup|OnPickup||
|OnPickupUseDown|OnPickupUseDown||
|OnPickupUseUp|OnPickupUseUp||
|OnPlayerJoined|OnPlayerJoined||
|OnPlayerLeft|OnPlayerLeft||
|OnSpawn|OnSpawn||
|OnTimer|OnTimer||
|OnVideoEnd|OnVideoEnd||
|OnVideoPause|OnVideoPause||
|OnVideoPlay|OnVideoPlay||
|OnVideoStart|OnVideoStart||

***Action [#sd12d9db]
|''VRC_Trigger''|''Trigger2to3''|''備考''|
|ActivateCustomTrigger|ActiveCustomTrigger||
|AddAngularVelocity|AddAngularVelocity||
|AddForce|AddForce||
|AddVelocity|AddVelocity||
|AnimationBool|AnimationBool||
|AnimationFloat|AnimationFloat||
|AnimationInt|AnimationInt||
|AnimationIntAdd|AnimationIntAdd||
|AnimationIntDivide|AnimationIntDivide||
|AnimationIntMultiply|AnimationIntMultiply||
|AnimationIntSubtract|AnimationIntSubtract||
|AnimationTrigger|AnimationTrigger||
|AudioTrigger|AudioTrigger||
|DestroyObject|DestroyObject||
|SetAngularVelocity|SetAngularVelocity||
|SetComponentActive|SetAnimatorActive&br;SetAudioSourceActive&br;SetColliderActive&br;SetRendererActive|対応コンポーネントのみ|
|SetGameObjectActive|SetGameObjectActive||
|SetLayer|SetLayer||
|SetMaterial|SetMaterial||
|SetParticlePlaying|SetParticlePlaying||
|SetUIText|SetUIText||
|SetVelocity|SetVelocity||
|SpawnObject|SpawnObject||
|TeleportPlayer|TeleportPlayer||
|RigidBody -> SendRPC(DisableGravity)|SetUseGravity|operation=false|
|&size(16){RigidBody -> };SendRPC(DisableKinematic)|SetIsKinematic|operation=false|
|&size(16){RigidBody -> };SendRPC(EnableGravity)|&size(16){SetUseGravity};|operation=true|
|&size(16){RigidBody -> };SendRPC(EnableKinematic)|&size(16){SetIsKinematic};|operation=true|
|&size(16){VRC_Pickup -> SendRPC(Drop)};|&size(16){PickupDrop&br;};||
|&size(16){VRC_Pickup -> };SendRPC(PlayHaptics)|PickupHaptic||
|&size(16){VRC_AvatarPedestal -> };SendRPC(SetAvatarUse)|SetAvatarUse||
|VRC_ObjectSync -> SendRPC(TakeOwnership)|TakeOwnership||
|VRC_ObjectSync -> SendRPC(TeleportTo)|TeleportObject||
|VRC_Station -> SendRPC(UseStation)|UseAttachedStation||
|VRC_AudioBank -> SendRPC(Play)|UseAudioBank|Command=Play|
|&size(16){VRC_AudioBank -> SendRPC(Stop)};|&size(16){UseAudioBank};|&size(16){Command=Stop};|
|&size(16){VRC_AudioBank -> SendRPC(Play Next)};|&size(16){UseAudioBank};|&size(16){Command=Play Next};|
|&size(16){VRC_AudioBank -> SendRPC(Shuffle)};|&size(16){UseAudioBank};|&size(16){Command=Shuffle};|

**実装を見送ったもの [#q29a5f67]

VRC_Triggerに存在するが、Trigger2to3に実装しなかったもの。

***Trigger [#af9d7131]
-Relay
-OnDataStorageChange

***Action [#wbc58dc1]
-AddDamage
-AddHealth
-PlayAnimation
-SendRPC


  ⇒ 一部の機能は独立したActionとして設けている。
-SetComponentActive


  ⇒ 実装したかったが汎用的に作ることが難しく断念。&color(#24292e){&size(16){代表的なコンポーネントについてのみ実装。};};

   ⇒ 他のコンポーネントの対応方法を[[こちらで解説>AltSetComponentActive]]。
-SetWebPanelURI
-SetWebPanelVolume

#br