Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WebGLExceptionSupport.ExplicitlyThrownExceptionsOnly

Description

Enable throw support.

With this option, exceptions can be thrown and caught in WebGL. But only exceptions explictly thrown will work. NullReferenceExceptions can still cause your content to fail. This has a significant cost in performance and build size over WebGLExceptionSupport.None, so only use it when you need it.