As the title suggests, this simple code will cause a crash:
using System;
using Unity.Burst;
using UnityEngine;
[BurstCompile]
public class NewBehaviourScript : MonoBehaviour
{
void Start()
{
ThrowException();
}
[BurstCompile]
public static void ThrowException()
{
throw new Exception("Oops");
}
}
After reading the docs, I’m pretty sure this is not expected behavior. Am I missing something?