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

NativeCollections fail in ISystems

$
0
0
Does the ISystem interface not yet support NativeCollection members?

For example, this system...
Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Unity.Entities;
  5. using Unity.Collections;
  6. using Unity.Burst;
  7.  
  8. [BurstCompile]
  9. public struct TestSystem : ISystem
  10. {
  11.     private NativeArray<int> foo;
  12.  
  13.     public void OnCreate(ref SystemState state)
  14.     {
  15.         foo = new NativeArray<int>(10, Allocator.Persistent);
  16.     }
  17.  
  18.     public void OnDestroy(ref...
NativeCollections fail in ISystems

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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