Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created April 18, 2019 12:01
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/2d5d934d36c6fc21a79719f524c588f9 to your computer and use it in GitHub Desktop.
Save tsubaki/2d5d934d36c6fc21a79719f524c588f9 to your computer and use it in GitHub Desktop.
using Unity.Entities;
using Unity.Transforms;
using UnityEngine;
public class CopyTransformToGameObjectConvert : MonoBehaviour, IConvertGameObjectToEntity
{
public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
{
dstManager.AddComponentData(entity, new CopyTransformToGameObject());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment