Skip to content

Instantly share code, notes, and snippets.

@tsubaki tsubaki/SampleSystem3.cs
Last active Mar 18, 2019

What would you like to do?
using Unity.Entities;
public class SampleSystem3 : ComponentSystem
protected override void OnUpdate()
Entities.ForEach((Entity entity, ref Score score) => {
// EntityManager.DestroyEntity(entity) // エラーが出る
PostUpdateCommands.DestroyEntity(entity); // こちらならOK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.