但是我在实践中,明明可以在Burst中使用静态数据啊,甚至在Burst编译的Job中也可以使用, 如以下结构体中的数据都可以使用,并且不影响Burst。 public…
- User
但是我在实践中,明明可以在Burst中使用静态数据啊,甚至在Burst编译的Job中也可以使用, 如以下结构体中的数据都可以使用,并且不影响Burst。 public struct SettingOfPosition { public struct Z { public static float ZPositionLimit => 0.01f; public static float DeadZPosition => 0.001f; public static float AliveZPosition => 0f; public static float NormalPositionLevel => 0.00005f; } }
Assistant
你说得对,在某些情况下,Burst 确实 允许访问静态变量。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.