Answers for "unity c# throw exception"

C#
1

unity c# throw exception

//usual c# syntax should work
throw new Exception(); //remember to include 'using System;'
//alternatively, try this
Debug.LogException(e, this);

//docs for latter: https://docs.unity3d.com/ScriptReference/Debug.LogException.html
Posted by: Guest on May-23-2021

C# Answers by Framework

Browse Popular Code Answers by Language