Тёмный
No video :(

DOTS Gameplay: EntityQuery 

Wilmer Lin GA School
Подписаться 12 тыс.
Просмотров 7 тыс.
50% 1

In this episode, we use an EntityQuery to set up the TargetData of our Chasers automatically. We also discuss the Callback Order within Systems and the Systems Update Order within a World. Use SystemGroups to help order your game logic!
Starter Project:
bit.ly/3byiRex
Final Project:
bit.ly/3bzaxLb
TimeStamps:
0:38 Starter Project and Packages
0:50 TargetToDirectionSystem
3:37 Chaser Sub-Scene
4:02 Finding GameObjects in Unity Classic
4:33 EntityQuery
5:15 AssignPlayerToTargetSystem
6:27 Executing an EntityQuery
8:50 Callback Order
10:30 System Update Order and SystemGroups
11:55 UpdateBefore/UpdateAfter/UpdateInGroup
13:47 System Update Limitations
14:28 Outro
Software: Unity 2019.3.11f1 with HybridRender Version 0.5.0 and Entities Version 0.10.0 from the PackageManager.
Also check out the previous videos in this series:
DOTS Gameplay: Basic Player Input and Movement:
• DOTS Gameplay: Basic P...
DOTS Gameplay: Tags:
• DOTS GamePlay: Tags
DOTS Gameplay: ComponentDataFromEntity:
• DOTS Gameplay: Compone...
Want to learn more about DOTS and ECS? Sign up for our mailing list to get notified when the premium course releases:
gameacademy.sc...
Want to support this channel? Subscribe to our premium courses at GameAcademy.school:
gameacademy.sc...
Let’s build something cool together!
Ready to go Pro? Get Unity Pro here (affiliate link):
prf.hn/click/ca...

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@ViggoAragant
@ViggoAragant 3 года назад
You are the man, I must say. Getting to the point and showing how to do it.
@DylUrem
@DylUrem 4 года назад
These tutorials are great. Excited to check out the full course when available!
@GameAcademySchool
@GameAcademySchool 4 года назад
Glad you like them!
@giantswing3175
@giantswing3175 4 года назад
Great video, please keep it up!
@ves3219
@ves3219 4 года назад
the first like is mine! Thank you for such a useful lesson! A huge request to disassemble the Buffers system especially when working with SystemBase
@user-kf4ye7zy4z
@user-kf4ye7zy4z 3 года назад
Great tutorials! Thank you very much, you explain it very clearly.
@CyrilPaulus0
@CyrilPaulus0 4 года назад
Once again a very well made tutorial !
@alexandreamiel1865
@alexandreamiel1865 3 года назад
awesome !!!
@TeemuTammisalo
@TeemuTammisalo 4 года назад
Haven't commented in a while on RU-vid but I gotta say you make excellent tutorials! Very easy to follow but information packed. Do you happen to have Discord group to join and talk about game development?
@GameAcademySchool
@GameAcademySchool 4 года назад
Unfortunately I don’t have time to run a Discord server but I will have a discussion board for the new class when it finally gets closer to done
@tehuster
@tehuster 4 года назад
Absolutely love these dots series so far. By far the best dots tutorials on the web. I'm very curious how you will implement collision detection. I subbed, belled and subscribed to your premium course. Keep up the excellent work!
@mathiasjensen2841
@mathiasjensen2841 4 года назад
This is probably some of the best Unity ECS content online right now. Very nice editing and presentation. When do you expect to have your full ECS course out - or maybe you plan on just doing it on RU-vid gradually like this? :)
@GameAcademySchool
@GameAcademySchool 4 года назад
A recut version of the RU-vid videos will be the first hour or so of the course then we will add a lot of common gameplay features to flesh out this little game (shooting, pickups, game management). Most of the detailed Unity Physics stuff will be there as well. Probably the first iteration of the full course won't be available until June realistically. I would love to keep all of it here on RU-vid but the format for an extended series doesn't work on the platform. It's more catered toward "one-off" episodic stuff. Human nature I guess.
@mathiasjensen2841
@mathiasjensen2841 4 года назад
@@GameAcademySchool I have noticed that a lot of other ESC tutorials tend to showcase slightly outdated ways of doing ECS (no doubt because of the ongoing development of ESC), but you seem to be onboard with the newest syntax's. Even though I don't always learn something new about ECS from your videos, they are so cleanly presented that I often use them as reference material for myself or for presenting ECS to others.
@mathiasjensen2841
@mathiasjensen2841 4 года назад
@@GameAcademySchool Keep up the good work! I will be looking forward to the course in June :)
@a.saluja8919
@a.saluja8919 4 года назад
Great video, please keep it up! You are awesome sir!
@GameAcademySchool
@GameAcademySchool 4 года назад
Thank you kindly!
@qin6409
@qin6409 2 года назад
FaceDirection has to be implemented in TargetToDirectionSystem in Entity0.51, or the issue looks like delayed FaceDirection called on Chaser
@gazeth
@gazeth 3 года назад
When I changed the method to OnStartRunning the program has an error. The video then goes on to explain about UpdateInGroup and UpateBefore - which solves the problem.
@sicksharkx92
@sicksharkx92 3 года назад
This Video doesn't work if you enable BURST compiler. for some reason it doesn't get that Singleton reference... Why?
@michaellarsen9334
@michaellarsen9334 4 года назад
If you move allTranslations out off Entities.ForEach, would you not be able to schedule it parallel rather then use Run()?
@prakyathd5018
@prakyathd5018 3 года назад
How to print message to console when using Unity Tiny?
@Kinggenton
@Kinggenton 3 года назад
hey can i use both dots and classical in the same game. reasons why i ask is cause i wanna make a new oculus game and their code is classical and because of that i want everything else to use dots except the vr code. i think it should work
@cognos23
@cognos23 4 года назад
Really great DOTs tutorials, many many thanks to you! All thumbs up! :) I finished the 4 tutorials in 2 days and can say that I learned a lot regarding DOTS and ECS. It is nice to watch how DOTS develops. It has become so much easier compared to the situation about 6 months ago, when I last worked on it (Entity conversion and job system). The SubScene system and the new SystemBase class are really brilliant. I'm just wondering how I can build the project now and how the subscenes are displayed. I have added the subscenes in the project settings, but unfortunately they seem to be disabled as soon as the project is built and executed. Both scenes have the property 'auto load scene' set to true. Apparently the scenes still need to be initialized somehow, which makes sense. But unfortunately my Google search was not successful. It would be great if you could talk about it in the next video - I guess it's just a little thing. I'm looking forward to your next tutorial, can hardly can wait for it now ;). I will definitely enroll in your course as soon as it is available. Keep up your really great work and presentation style - and again, thank you very much for your hard work! best regards
@GameAcademySchool
@GameAcademySchool 4 года назад
cognos23 the SubScenes are part of other Scenes. You shouldn’t need to build them separately
@cognos23
@cognos23 4 года назад
@@GameAcademySchool Thank you for your super fast reply :). I think you had me a little misunderstood. When I build and execute the project, the screen is blank because the subscenes are apparently not displayed. In my project settings under section 'scenes in build' I added all 3 scenes, and all are checked. I guess they still need to be initialized somehow. It seems that the boolean property 'auto load scene' of the default subscene script doesn't to anything about it. Do you see your subscenes per default when executing your build? I am using version 2019.3.14f1. Maybe I have to go down a unity version. best regards
@ves3219
@ves3219 4 года назад
Sooo waiting for a video about physics. When will it be released? The faster you collect the number of these videos the faster the channel will start to grow! Because these are almost the only full-fledged videos on this topic and the most understandable and high-quality. Thank you very much for your work!
@GameAcademySchool
@GameAcademySchool 4 года назад
VES unfortunately most of the physics stuff won’t be featured here. We will touch on how to set up a very basic trigger or collider but Unity Physics is quite large. We’ll probably have to save that for the full course. As far as channel growth while it would be great, most of my efforts are spent on long form courses versus one-offs, which tend to do better on RU-vid. Hope that makes sense.
@ves3219
@ves3219 4 года назад
Sorry to hear that. And what is the full course where to watch it? Please consider Collider and not Trigger because there is not a little video about Trigger And what about the use of AddComponent, GetComponnent, SetComponent in the SystemBase system are very capricious things, that's what you would consider it.
@GameAcademySchool
@GameAcademySchool 4 года назад
@@ves3219 Sign up for the mailing list (see link in description) to get notified when the full course is available on Udemy. The difference between Collisions and Trigger is minimal. Just like classic Unity, it's just the difference between an ICollisionEventsJob and ITriggerEventsJob. You use the same way except in one the PhysicsColliders bounce and in the other they pass through.
@drawmaster77
@drawmaster77 2 года назад
I don't know how useful these are. Everything in Unity is still object oriented - no plugins on asset store support DOTS and as far as I understand they can't be easily converted. Further no engine features are supporting DOTS - AI, animation, physics, etc... I mean if you go into using DOTS you might as well just build your own engine, because there's very little of "unity" you will be using anyway. Am I wrong?
@asadchaudhry6472
@asadchaudhry6472 4 года назад
What do you do do instead of a Singleton to assign an entity to "targetEntity" if you have more than one Player?
@ericolofsson9325
@ericolofsson9325 4 года назад
You can use the getEntity method instead of the getSingletonEntity method and convert it to a list of either the entity or a list of types of components. If you have multiple Players then use the getEntity method and convert it into a list that you iterate trough to find the correct one. You will need to have some identifier per player and for that I would sugest to either use the Entity ID or create a Data Component called something like PlayerIndexData containing a int so you can just Query for the PlayerIndexData component and iterate trough the list
@ruchirraj5300
@ruchirraj5300 4 года назад
Can you Upload an tutorial about raycasting in parallel in ecs?
@GameAcademySchool
@GameAcademySchool 4 года назад
Ruchir raj Probably not here.
Далее
DOTS Gameplay: Trigger Events
25:02
Просмотров 12 тыс.
Unity DOTS: C# Job System
19:47
Просмотров 20 тыс.
ЛОВИМ НОВЫХ МОНСТРОВ В LETHAL COMPANY
2:42:22
Unity DOTS: Components And Systems
18:50
Просмотров 16 тыс.
What are Subscenes in Unity? (Massive Worlds!)
15:51
Просмотров 95 тыс.
Options for Entity interaction - Unite Copenhagen
43:12
DOTS Gameplay: Collision Events
18:21
Просмотров 10 тыс.
Unity DOTS: System Base
12:47
Просмотров 15 тыс.
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,6 млн
Pathfinding in Unity DOTS! (Insane Speed!!!)
24:56
Просмотров 132 тыс.
Unity Job System - A Practical Code Example
13:50
Просмотров 81 тыс.
Unity DOTS: Creating an Entity
15:59
Просмотров 49 тыс.
Getting Started with the Job System in Unity 2019
25:54