Тёмный
No video :(

DOTS GamePlay: Tags 

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

In this episode, let's use Tags, a simple technique using empty Components to sort and organize your ECS project. Use Tags to customize your Systems and limit behavior to only specific subsets of Entities.
TimeStamps:
0:39 Starter Project and Packages
1:25 ECS Systems and Multiple Entities
2:20 Asteroids Assets
3:07 Asteroid SubScene and Setup
4:15 Parent-Child Components
5:17 Setup MoveData Authoring
5:45 MoveForwardSystem
7:43 SpinnerSystem
10:53 Systems and Multiple Entities
12:29 Tags
13:34 Tag Authoring Setup
14:11 Entities.ForEach Filters
15:38 SpinnerSystem Filters
16:21 MoveForwardSystem Filter
16:52 PlayerInputSystem Filter
17:20 More Asteroids
18:22 Outro
Starter Project:
github.com/Uni...
Final Project:
github.com/Uni...
Software: Unity 2019.3.9 with HybridRender Version 0.4.2 and Entities Version 0.9.1 from the PackageManager.
Also check out the previous videos in this series:
Unity DOTS: Components and Systems
• Unity DOTS: Components...
Unity DOTS: System Base
• Unity DOTS: System Base
DOTS Gameplay: Basic Player Input and Movement
• DOTS Gameplay: Basic P...
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!

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

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@behnamrasooli8801
@behnamrasooli8801 4 года назад
Please don't stop this tutorial series(Playlist). This is the most viable series about ECS. Other similar tutorials are just talking about how we can spawn millions of GameObjects which is not what we do in game development %90 of the time.
@GameAcademySchool
@GameAcademySchool 4 года назад
Behnam Rasooli Thanks! Please share this series. Still trying to get enough eyeballs!
@qin6409
@qin6409 2 года назад
amazing tutorial, I can't believe I spent a lot of time struggling on ECS from youtube for a long time.
@kennethgriffin5761
@kennethgriffin5761 3 года назад
207 likes and 0 dislikes. Speaks for itself on the quality of your videos.
@GameAcademySchool
@GameAcademySchool 3 года назад
Thanks for channeling the positivity! Unfortunately, the audience for these videos couldn't quite justify a full course or more videos on DOTS. It's a super interesting architectural pattern though...
@kennethgriffin5761
@kennethgriffin5761 3 года назад
@@GameAcademySchool I understand your frustration. Your current target audience are only the pioneers. As DOTS inevitably becomes mainstream, these videos might get a second breath. Or if Unity decides to make too much change so as to make these tutorials outdated, the fanbase you've built will help give your next series an important initial boost for your next series in the eyes of the youtube algorithm. Stay positive. In terms of raw quality, your tutorials are way better than many very successful channels, including Brackeys, maybe on par with Sebastian Lague imo.
@sicksharkx92
@sicksharkx92 3 года назад
@@GameAcademySchool I have done the same steps like you but in the Entity Debugger I don't get the names "SpaceShip" or "Asteroid". Instead I get a bunch of "Enitity3" "Entity12" etc... and everytime I run again they even change number. Why is that?
@diliupg
@diliupg 3 года назад
Your tutorials are the best on ECS on RU-vid. Thank You!
@chrisco722
@chrisco722 4 года назад
Love your content, very well explained. Trumps Unity's Learn official tutorials. There are so many Unity tuts on RU-vid, yet most only show the "WHAT" todo, without explaining the most important "WHY", and "HOW" like you do.
@GameAcademySchool
@GameAcademySchool 4 года назад
Thanks, Chris! Much appreciated.
@chrisco722
@chrisco722 4 года назад
@@GameAcademySchool I'd be very interested in DOT tutorials on modular architecture. Coming from web dev world, I'm used to reusable, declarative, and elegant solutions like react and redux-saga, which allows composing complex a/sync flows (i.e. write once, use everywhere). Unity's classic Event system seems too imperative for re-use. Good example is drag n shoot use case. You want the ability to attach onDrag event on gameObjectA, and trigger shooting on gameObjectB, without A - B aware of each other.
@GameAcademySchool
@GameAcademySchool 4 года назад
@@chrisco722 Hmm, not quite sure if I follow your example. You would make gameObjectA change states, then have gameObjectB listen for those changes. A has no awareness of B just broadcasts to everyone what it's doing. B, C, D, whatever listen for A. How you setup relationships between Entities in DOTS is all different though...
@chrisco722
@chrisco722 4 года назад
@@GameAcademySchool Exactly, with DOT Tags and System, we can eliminate `event listening` entirely, thus getting rid of dependency referencing, and without using global EventManager. The System will act as EventManager, connecting components and their data via Tags. Example DragNShootSystem: first, retrieve drag direction and position from gameObjectA (onDragSignalTag), then AddForce to all entities with onDragShootTag. Makes sense?
@tehuster
@tehuster 4 года назад
Amazing content sir. Arguably the best tutorials on the web. Please do not stop creating this content, you have a talent for teaching.
@GameAcademySchool
@GameAcademySchool 4 года назад
Thomas Huster Thanks Thomas. Next up is EntityQuery. Please share this video. We need some more views to keep going with free content.
@tehuster
@tehuster 4 года назад
@@GameAcademySchool if it's money you need to keep up the great quality content i'm definatly willing to pay for a course.
@GameAcademySchool
@GameAcademySchool 4 года назад
Thomas Huster Unfortunately, yes, these videos take quite a lot of time. And RU-vid is not a great format for anything other than a one-off ten minute video.
@TheGenis1234
@TheGenis1234 4 года назад
Very Nice Explained and completely Up to date! Congratulations!
@GameAcademySchool
@GameAcademySchool 4 года назад
TheGenis1234 it’s an uphill battle. Yeah videos from a few weeks ago are already labeled as obsolete :(. RIP ComponentSystem and JobComponentSystem
@TheGenis1234
@TheGenis1234 4 года назад
@@GameAcademySchool Totally, I'm doing my master degree final project using unity DOTS and steering behaviours and you really helped me understanding new aproaches
@nuunuuz
@nuunuuz 4 года назад
Good tutorial. Way clearer than the others. Pls continue.
@TylerButh
@TylerButh 2 года назад
You guys are rocking these ECS tutorials, please keep making more!
@sconosciutosconosciuto2196
@sconosciutosconosciuto2196 4 года назад
Awesome video :D
@AzazeoAinamart
@AzazeoAinamart 4 года назад
Great tutorials so far! I already decided to try DOTS on... not a game, but some type of nature ecosystem simulator built on top of the components system will be a good exercise to try
@playtech5362
@playtech5362 4 года назад
You`re a great teacher , please keep this up
@GameAcademySchool
@GameAcademySchool 4 года назад
PLAYTECH Thanks for the vote of confidence. Please share these videos. We need more support to keep going...
@playtech5362
@playtech5362 4 года назад
@@GameAcademySchool sure , i`ll share these videos , I`m really a fan of your lectures from Udemy Courses but i didn`t know that this channel is yours , I`m really excited about this .
@shirosurfer8864
@shirosurfer8864 4 года назад
Excited to see more dots man also waiting for the course to come out I wan to learn entity compoment buffers and physics for collision and triggers that add tags ;thats going to be huge man.
@GameAcademySchool
@GameAcademySchool 4 года назад
Shiro Surfer still making lessons. Don’t worry we cover those..
@wrinklymon
@wrinklymon 4 года назад
Think you'd ever do any tutorials on the newly released 2D Entities package? I can't find a single tutorial on it anywhere, and you seem to be making the most educational content on DOTS honestly.
@GameAcademySchool
@GameAcademySchool 4 года назад
Not currently planned but never say never
@sicksharkx92
@sicksharkx92 3 года назад
@Game Academy.school I have done the same steps like you but in the Entity Debugger I don't get the names "SpaceShip" or "Asteroid". Instead I get a bunch of "Enitity3" "Entity12" etc... and everytime I run again they even change number. Why is that?
@prakyathd5018
@prakyathd5018 3 года назад
How to print message to console when using Unity Tiny?
@simon000winter
@simon000winter 4 года назад
Can you explain how to handle inter object references in DOTS properly? One object referencing another ist the OOP way, but that is kinda violating the cahrackter of DOTS right? I have to lookup the references in memory again loosing the advantage of Clsutered memory. As example, having two voxel chunks neto each other, i need to set bot in a relation to calculate which faces on the connecting sides get drawn and which not. How would i do such things the DOTS way?
@GameAcademySchool
@GameAcademySchool 4 года назад
We will cover this in a future video, but ComponentDataFromEntity is the one of the more important things that is glossed over in a lot of DOTS stuff: docs.unity3d.com/Packages/com.unity.entities@0.9/api/Unity.Entities.ComponentDataFromEntity-1.html?q=componentDatafrom This is a NativeContainer with handy Exists and HasComponent methods. Create a Component that contains an Entity as a public field. Use this Component to create a relationship between Entities (similar to how the Parent-Child components store Entity ids). Because Entities are just integer IDs, it's not a reference like with objects. It's just an index number. Use ComponentDataFromEntity on a specific data type (whatever you are checking for, Translation, Rotation, anything at all). Use the Entity ID in question to pass into the Exists method. If so, then use the Entity ID as an index into the ComponentDataFromEntity. Do whatever you want with the data you get back. It's still data-centric. The relationships between Entities is just stored as a bunch of Components.
@simon000winter
@simon000winter 4 года назад
@@GameAcademySchool thank you Very much for the detailed answer, Very helpful!
@GameAcademySchool
@GameAcademySchool 4 года назад
simon000winter I managed to incorporate this into the next video. Just finishing it up...
@cephaswilco
@cephaswilco 4 года назад
@@GameAcademySchool When is the next video released?
@naemesis9187
@naemesis9187 4 года назад
Would it be possible for you to make a video about making DOTS run on a Fixed Timestep for physics simulations? I've looked around and it seems to be possible, but without easy to use support.
@GameAcademySchool
@GameAcademySchool 4 года назад
Naemesis Thanks for the feedback. We will cover more topics on physics in the full course, probably not here
@theamici
@theamici 4 года назад
Those tags is totally a hack. Unity should come up with something more dedicated instead of compiler hacking
@GameAcademySchool
@GameAcademySchool 4 года назад
Amici Nybråten That seems to be the preferred workflow.
Далее
DOTS Gameplay: ComponentDataFromEntity
18:54
Просмотров 8 тыс.
DOTS Gameplay: Basic Player Input and Movement
22:23
Просмотров 23 тыс.
Unity DOTS: Components And Systems
18:50
Просмотров 16 тыс.
DOTS Gameplay: Trigger Events
25:02
Просмотров 12 тыс.
Unity DOTS: C# Job System
19:47
Просмотров 20 тыс.
Unity Job System - A Practical Code Example
13:50
Просмотров 81 тыс.
Unity DOTS: System Base
12:47
Просмотров 15 тыс.
Options for Entity interaction - Unite Copenhagen
43:12
How Games Have Worked for 30 Years to Do Less Work
23:40
What are Subscenes in Unity? (Massive Worlds!)
15:51
Просмотров 95 тыс.