Skip to content

Instantly share code, notes, and snippets.

@tsubaki tsubaki/Boostrap.cs
Created Sep 22, 2018

Embed
What would you like to do?
using UnityEngine;
using Unity.Entities;
using Unity.Rendering;
using Unity.Transforms;
public class Boostrap : MonoBehaviour
{
private World gameWorld, menuWorld;
void Awake()
{
gameWorld = new World("Game World");
menuWorld = new World("Menu World");
gameWorld.CreateManager<MeshInstanceRendererSystem>();
gameWorld.CreateManager<TransformSystem>();
gameWorld.CreateManager<RenderingSystemBootstrap>();
gameWorld.CreateManager<EndFrameTransformSystem>();
// 中略
}
void OnDestroy()
{
gameWorld.Dispose();
menuWorld.Dispose();
}
}
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.