文档

Unity Engine

Unity Engine

GenerateTestsForBurstCompatibilityAttribute

Documents and enforces (via generated tests) that the tagged method or property has to stay burst compatible.
阅读时间3 分钟最后更新于 1 个月前

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