#System not appearing in inspector

1 messages · Page 1 of 1 (latest)

faint breach
#

Hi! I'm experimenting with ECS and I'm trying to create and spin up a BaseSystem

So I've created a class:

using Unity.Entities;
using UnityEngine;

namespace Systems
{
    public struct ForwardInput: IComponentData
    {
        public bool Value;
    }
    
    public partial class GetPlayerInputSystem : SystemBase
    {
        protected override void OnCreate()
        {
            Debug.Log("Hello there");
            EntityManager.AddComponent<ForwardInput>(SystemHandle);
        }

        protected override void OnUpdate()
        {
            var currentInput = new ForwardInput
            {
                Value = Input.GetKey(KeyCode.W)
            };
            EntityManager.SetComponentData(SystemHandle, currentInput);
        }
    }
}

I can see the HEllo there output in the console, but then when going into the entities hierarchy and click on my system, it doesn't appear in the inspector.

Also I can see in the Systems that there is no entity in the System. I'm expecting EntityManager.AddComponent<ForwardInput>(SystemHandle) to add one?

Did I miss anything?

echo rapids
#

By default system entities are hidden from queries

#

There's a withoptions include systems you can use

#

That said, addcomponent won't create an entity, though in this case the entity already exists

faint breach
#

Where can I find this option? This makes the debug not really easy. I'm following this tutorial: https://www.youtube.com/watch?v=t2S9-pC05hs
Although it's a bit dated, it's on version 1.0

👨‍💻 Code/Scripts from this video: https://www.tmg.dev/1-0-Systems-Code 👨‍💻
💬 Come chat with other DOTS/ECS devs: https://tmg.dev/Discord 💬
📌 Watch my intro to DOTS 1.0 step-by-step tutorial video: https://youtu.be/IO6_6Y_YUdE 📌
🚧 Resources Mentioned 🚧

▶ Play video
faint breach
#

So by default, It's not possible to see the content of the System like it's being done in the video?

echo rapids
#

We're probably not going to watch a 23min video to figure out the feature you're asking about

#

But I doubt whatever you're asking about has been taken away

#

Anyway I was in bed before so i couldn't load up unity btu give me a sec and let me show you what i'm talking about