I’ve been studiying the ECS & Job System, I’ve been following Brackey’s tutorial. So I’ve been slapped in the face by this Error
“Assets\Scripts\Player.cs(21,27): error CS0103: The name ‘GetEntities’ does not exist in the current context”
Here’s the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Entities;
public class Player : MonoBehaviour
{
[SerializeField]
private float speed;
}
public class WalkingSystem: ComponentSystem
{
struct Components
{
public Player player;
public Transform Transform;
}
protected override void OnUpdate()
{
foreach (var e in GetEntities<Components>())
{
Debug.Log("Hello World");
}
}
}
Also, The Entity Debugger is completelly empty, at all, It only says “No Worlds Selected” How can I setup this World thing?:
Thanks;
Arthur