I have many problems with my Unity ECS like this one. Firstly, in a script like that (with many imports for tests) :
using Unity.Collections;
using Unity.Entities;
using Unity.Mathematics;
using Unity.Rendering;
using Unity.Transforms;
using UnityEngine;
public class TestScript : MonoBehaviour, IConvertGameObjectToEntity
{
// ...
}
The type "IConvertGameObjectToEntity" isn't reconize by Unity, why ? I import Entities, Entities Graphics (latests versions) and I have HybridRendering. For information, others types and attributes don't work, like "[GenerateAuthoringComponent]", thanks in advance.
I have recreated 3 times the projects. I have uninstalled the Entities packages and reinstall them. I have changed the version of Unity (the latest LTS). I have regenerate the projects files after import the all packages. I don't know what to do... Morefurther I also check Internet and Stackoverflow with her potentials answers.
Apparently, the types and attributes in question are no more in
Unity.Entities
, like[GenerateAuthoringComponent]
,Translation
orIConvertGameObjectToEntity
, ...