GetEntities Does not Exist?

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


I'm guessing you're trying to use a very old tutorial with a newer version.
https://docs.unity3d.com/Packages/com.unity.entities@0.11/manual/ecs_entities_foreach.html

Or try to find a newer tutorial.

1 Like

[quote]
I'm guessing you're trying to use a very old tutorial with a newer version.
https://docs.unity3d.com/Packages/com.unity.entities@0.11/manual/ecs_entities_foreach.html

Or try to find a newer tutorial.
[/quote]

Thank You for your comment! You have helped me a lot.