Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NegishiTakumi/9faed3a62877f11a681de3b112be8658 to your computer and use it in GitHub Desktop.
Save NegishiTakumi/9faed3a62877f11a681de3b112be8658 to your computer and use it in GitHub Desktop.
https://docs.unity3d.com/ja/current/Manual/EventSystem.html
にて
あなたのシーンに構成された 2D/3D Raycaster がある場合、UI 要素が InputModule からのメッセージを容易に受信しないことが可能です。
単にイベントのいずれかのインターフェースを実装したスクリプトを添付します。
とあります。ここの日本語訳が英語版ドキュメントとの意図と違うのでは?と思ったので修正案を提案します。
英語版を見ると
If you have a 2d / 3d Raycaster configured in your scene it is easily possible to have non UI elements receive messages from the Input Module.
Simply attach a script that implements one of the event interfaces.
とありますので、
あなたのシーンに構成された2d/3d Raycasterがある場合、UI要素ではないものにもInputModuleからのメッセージを受け取らせることが可能です。
これはEvent Interfaceを実装したスクリプトをアタッチするだけです。
とするのはいかがでしょうか。
よろしくお願いします。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment