Unity ECS Angry Bots demo - full code walkthrough

  Рет қаралды 37,518

Brian Will

Brian Will

Күн бұрын

Пікірлер: 38
@MikeAtUnity
@MikeAtUnity 5 жыл бұрын
It is worth noting that this project was built specifically to be used in a presentation. As such, some of the structure is to make the presentation smoother so I could focus on the information that was relevant to the topic and audience. I say this so you know that not all of this represents "the way you should do it" and instead is meant for conceptual understanding.
@mouadovic
@mouadovic 5 жыл бұрын
if you say thanks it will be helpful!
@user-gl1ls1jx3h
@user-gl1ls1jx3h 5 жыл бұрын
Hey Mike! I loved your presentation, probably the clearest explanation of implementing DOTS I've seen so far. I'd love to see more content by you, maybe some youtube videos, about implementing DOTS. For example, you mentioned how the collision system in this project isn't a good way to do it; I'd like to see you elaborate on that and other things you wouldn't have had the time for on stage. Would you ever consider making youtube videos or some other kind of content?
@MikeAtUnity
@MikeAtUnity 5 жыл бұрын
@@user-gl1ls1jx3h Thanks for the kind words. Making youtube videos was one of the ways I got started, but it is hard to find the time any more. With the collision system, you'll notice that each bullet is checked against each enemy (which is super wasteful). Also, since it fires in a pyramid shape, only the horizontal bullets could even hit an enemy, so many of the checks are doubly wasteful. Also, it is a simple radial check, which isn't very accurate.
@michaelbeee3801
@michaelbeee3801 4 жыл бұрын
@@MikeAtUnity thanks Mike and thanks Brian. Could you point to an efficient collision system we can kinda copy/adapt to our code?
@mikepandolfini8369
@mikepandolfini8369 3 жыл бұрын
I find this a bit annoying. It's hand waving like this that contribute to the years-long discussion of "why are you getting input in Update and doing motion in FixedUpdate?" and this can be extremely frustrating to beginners who are using this as sample code from a reliable source.
@AndrewErwin73
@AndrewErwin73 2 жыл бұрын
wow! You found a use for object oriented programming!
@pieTone
@pieTone 2 жыл бұрын
=)
@MikeAtUnity
@MikeAtUnity 5 жыл бұрын
Hey, that project looks familiar! ;)
@micaiahstevens8840
@micaiahstevens8840 5 жыл бұрын
WELL your Name sounds familiar, NAHHH couldn't be!
@유현수-s8o
@유현수-s8o 4 жыл бұрын
Helpful video
@dribbler8131
@dribbler8131 4 жыл бұрын
Hi Mike, How does ECS work with nested prefabs? Like for example I used the RPGHero Free model from the Unity Asset store and it creates 70 entities for 1 model with a ConvertToEntity method, Seems ECS is fine for 1 model meshes but if you have a model consisting of other models. (IE... A house prefab might have windows, doors and walls inside it). I am confused how you access the root and then update all the relevant children components... Nice tutorial though!
@MalikenGD
@MalikenGD 5 жыл бұрын
Great video
@MaxMustermannDerDritte
@MaxMustermannDerDritte 5 жыл бұрын
Hey Brian, I am trying to use ecs in my project, but it wont convert the Meshrenderer. The entities are moving and have a speed but you cant see them. Do i miss something?
@briantwill
@briantwill 5 жыл бұрын
Two most obvious questions: 1) In the entity debugger, does the entity have a RenderMesh component? 2) Did you import Hybrid.Rendering?
@MaxMustermannDerDritte
@MaxMustermannDerDritte 5 жыл бұрын
@@briantwill the Hybrid.Rendering fixed it, Thank you very much! Will you also post a tutorial to the fish swarm demo?
@childofakingcharity5597
@childofakingcharity5597 4 жыл бұрын
@@MaxMustermannDerDritte what version of the Hybrid Render should I use because I'm getting some errors namespace errors
@MaxMustermannDerDritte
@MaxMustermannDerDritte 4 жыл бұрын
@@childofakingcharity5597 I dont really know anymore, but it was the newes version 4 month ago, what errors are you getting?
@childofakingcharity5597
@childofakingcharity5597 4 жыл бұрын
@@MaxMustermannDerDritte error cs0103:the name renderpipline does not exist
@sebastianviruzab7986
@sebastianviruzab7986 5 жыл бұрын
Hey Brian, what happened to codeschool ? :'( new subscriber here
@JohnSmith-ox3gy
@JohnSmith-ox3gy 5 жыл бұрын
0/5 the gun doesn't shoot out enough glowy stuff.
@WangleLine
@WangleLine 5 жыл бұрын
What's ECS?
@MegaMiley
@MegaMiley 5 жыл бұрын
It's the Entity Component System, you can learn about it in the Docs docs.unity3d.com/Packages/com.unity.entities@0.1/manual/index.html :)
@jackwhitenoise3943
@jackwhitenoise3943 5 жыл бұрын
I like the video, but as far as the "Angry Bots 2" I don´t understand why this project was not on the asset store , I think that there is a lot of people unaware that Angry Bots 2 project even exist
@MikeGeigTV
@MikeGeigTV 5 жыл бұрын
Honestly, my team built it to use for demos with the plan being to eventually post it for everyone. Then we got super busy and just haven't done it yet. There still needs to be some general cleanup and maintenance at this point.
@jackwhitenoise3943
@jackwhitenoise3943 5 жыл бұрын
Sorry for late reply,Thanks for the answer about Angry Bots 2 Mike ,i know you guys have a lot of work,thanks for all the good tutorials and everything ,keep up the good work ,i really appreciate all the help you and the team are giving us every day
@sooaolongtian3710
@sooaolongtian3710 5 жыл бұрын
hi, where to download this project file?
@briantwill
@briantwill 5 жыл бұрын
github.com/UnityTechnologies/AngryBots_ECS
@tka912
@tka912 5 жыл бұрын
it is pure ECS right?
@briantwill
@briantwill 5 жыл бұрын
No, pure ECS isn't really a viable option yet. The player avatar, the gun, the ground, the lights, are all GameObjects. The bullets and enemies are entities.
@stormAster720
@stormAster720 4 жыл бұрын
it is hybrid ECS
@pavelmatusu4457
@pavelmatusu4457 Ай бұрын
Is the number one oop hater really using c#, huh?????
@ThePixelitomedia
@ThePixelitomedia 5 жыл бұрын
unreal entering chat: lol... unreal left chat.
@ps5games821
@ps5games821 3 жыл бұрын
Make tutorials please
I Made an RTS Game with Unity DOTS + ECS
16:56
Turbo Makes Games
Рет қаралды 29 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Getting Started with the Job System in Unity 2019
25:54
Code Monkey
Рет қаралды 184 М.
Intro to DOTS Animation - Unity ECS Tutorial 2024
28:30
Turbo Makes Games
Рет қаралды 27 М.
Better Jumping in Unity With Four Lines of Code
12:47
Board To Bits Games
Рет қаралды 825 М.
Unity Job System - A Practical Code Example
13:50
Infallible Code
Рет қаралды 83 М.
Your First Encounter with Unity ECS: A Basic Tutorial
14:52
Unity Japan
Рет қаралды 20 М.
How Games Have Worked for 30 Years to Do Less Work
23:40
SimonDev
Рет қаралды 1,4 МЛН
How To Build An Event System in Unity
8:01
Game Dev Guide
Рет қаралды 417 М.
Creating an easy Ability System in Unity
7:08
TIMBER
Рет қаралды 106 М.
Using Interfaces in Unity Effectively | Unity Clean Code
4:23
James Makes Games
Рет қаралды 63 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.