Quantcast
Viewing all articles
Browse latest Browse all 2891

The name 'Entities' does not exist in the current context

using System.Collections; using System.Collections.Generic; using UnityEngine; using Unity.Entities; public class AttributesGenerationSystem : ComponentSystem { private static EntityManager entityManager; [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] public static void Initialize() { entityManager = World.Active.GetOrCreateManager(); } protected override void OnUpdate() { Entities.ForEach(); } } I know I haven't entered parameters yet for Entities.ForEach(); — that’s not my issue. I get the error message; > "The name 'Entities' does not exist in> the current context" Am I doing something wrong here?

Viewing all articles
Browse latest Browse all 2891

Trending Articles