Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

why show error:This is only supported when using .WithoutBurst() and .Run().

$
0
0
Code (CSharp):
  1. using System;
  2. using Unity.Entities;
  3.  
  4. [GenerateAuthoringComponent]
  5. public class RotateSpeed1 : IComponentData
  6. {
  7.     public float speed;
  8. }
Code (CSharp):
  1.     protected override void OnUpdate()
  2.     {
  3.         float deltaTime = Time.DeltaTime;
  4.  
  5.         Entities.
  6.             ForEach((ref Rotation rotation, in RotateSpeed1 rotateSpeed) => {
  7.                 rotation.Value = math.mul(
  8.                     math.normalize(rotation.Value),...
why show error:This is only supported when using .WithoutBurst() and .Run().

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>