Question by
Wittz8 · Jul 08, 2020 at 12:46 AM ·
error messagepreviewcontext
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<EntityManager>();
}
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;
Am I doing something wrong here?"The name 'Entities' does not exist in the current context"
Comment
Your answer
Follow this Question
Related Questions
Anyone know how to solve this error? 0 Answers
Error CS1525 Unexpected Symbol "if" Pls help 1 Answer
error cs0101 0 Answers
Unity ads initialize error 1 Answer