Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created September 4, 2018 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/a6774ac561bfb99d5294558ae5785d1d to your computer and use it in GitHub Desktop.
Save tsubaki/a6774ac561bfb99d5294558ae5785d1d to your computer and use it in GitHub Desktop.
UpdateInGroupのサンプル
using Unity.Entities;
[UpdateInGroup(typeof(MyGroup))]
[AlwaysUpdateSystem]
public class ASystem : ComponentSystem
{
protected override void OnUpdate(){}
}
using Unity.Entities;
[UpdateInGroup(typeof(MyGroup))]
[UpdateAfter(typeof(ASystem))]
[AlwaysUpdateSystem]
public class BSystem : ComponentSystem
{
protected override void OnUpdate(){}
}
using Unity.Entities;
[UpdateInGroup(typeof(MyGroup))]
[UpdateAfter(typeof(BSystem))]
[AlwaysUpdateSystem]
public class CSystem : ComponentSystem
{
protected override void OnUpdate(){}
}
using Unity.Entities;
[UpdateBefore(typeof(MyGroup))]
[AlwaysUpdateSystem]
public class X1System : ComponentSystem
{
protected override void OnUpdate(){}
}
using Unity.Entities;
[UpdateAfter(typeof(MyGroup))]
[AlwaysUpdateSystem]
public class X2System : ComponentSystem
{
protected override void OnUpdate(){}
}
@tsubaki
Copy link
Author

tsubaki commented Sep 4, 2018

18 50 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment