コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Script error: OnTriggerStay This message parameter has to be of type: [UNREGISTERED] The message will be ignored.

概要

Script error: OnTriggerStay This message parameter has to be of type: 
[UNREGISTERED] The message will be ignored.

Unity で WebGL ビルドしたゲームを起動したら
上記のエラーが発生する現象に遭遇した

f:id:baba_s:20210223220140p:plain

Project Settings の「Player > Strip Engine Code」をオフにしたら
エラーが発生しなくなった