Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GenerateTestsForBurstCompatibilityAttribute

Documents and enforces (via generated tests) that the tagged method or property has to stay burst compatible.
Read time 3 minutesLast updated 13 days ago

Definition

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property, AllowMultiple = true)]public class GenerateTestsForBurstCompatibilityAttribute : Attribute

Remarks

This attribute cannot be used with private methods or properties.

Fields

Value

Description

CompileTargetSpecifies whether code should be Burst compiled for the player, editor, or both.
RequiredUnityDefineSpecifies the symbol that must be defined in order for the method to be tested for Burst compatibility.

Properties

Property

Description

GenericTypeArgumentsTypes to be used for the declared generic type or method.

Enums

Inheritance

Inherited Members