Тёмный
No video :(

DOTS Gameplay: Trigger Events 

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

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

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@diliupg
@diliupg 3 года назад
The reason you are not having many hits on your DOTS videos are not because they are not good. It is simply because not many are still using DOTS. around 95% or even more Unity users are still chasing Game Objects on Tile Maps. New tech takes time to catch on. Your videos are by far the best on RU-vid on this subject. There are two main courses on Udemy on DOTS and they are nothing compared to your high quality, well explained video. Kudos! I have shared your videos on several Unity forums and wish you good luck. May you be well! :)
@TakeshiKovacs101
@TakeshiKovacs101 2 года назад
In Unity editor the "Physics Shape" component has no more a checkbox for "IS TRIGGER", you have to select from the dropdown "Collision Response" the option "Raise Trigger Events". And that's all!
@_MG_01
@_MG_01 2 года назад
Thanks! Please keep posting tutorials on DOTS! Best content I've found so far on this topic! Make a Patreon page so we can support you
@MatthewTrecozzi
@MatthewTrecozzi 4 года назад
Thanks for sharing more DOTS Content! I'm excited to catch up through your back catalog. I'm really excited to learn ECS but I've been struggling. Resources like yours help a ton!
@GameAcademySchool
@GameAcademySchool 4 года назад
You can do it!
@tehuster
@tehuster 4 года назад
Give this man more views! Great content as usual. Can't wait until you release your full course! Do you have a release date in mind? Sidenote, I really hope unity fixes the competability between different version of the dots preview packages it already gave me a lot of headaches. Keep up the great work sir!
@GameAcademySchool
@GameAcademySchool 4 года назад
It keeps getting pushed back, but definitely this summer.
@GameAcademySchool
@GameAcademySchool 4 года назад
Yeah I think different teams are working on the Physics versus Entities/HybridRenderer packages, so the release schedule has not been sync'ed. You really have to be careful which version of each package you use or nothing works.
@tehuster
@tehuster 4 года назад
@@GameAcademySchool This is exactly what i'm experiencing. I'm running in to problems with the GameObjectConversionUtility.cs when i install the Unity.physics package. It's because i instantiate / convert prefabs to entities to shoot bullets etc. Exactly like you explained in your "Conversion Workflow" video. Have you had a similiar experience with this and or have a fix?
@zacharym7000
@zacharym7000 4 года назад
I ran into an issue where Unity would tell me the fighter mesh was invalid when I tried to implement the physics side of things... if this happens, re-import the fighter prefab and be sure to tick the Read/Write box before you finish importing it.
@-.._.-_...-_.._-..__..._.-.-.-
@-.._.-_...-_.._-..__..._.-.-.- 3 года назад
No need to re-import. Just select the model in the Project window, select "Model" at the top of the Inspector window and put a check mark on "Read/Write Enabled."
@shirosurfer8864
@shirosurfer8864 4 года назад
Will you include raycast in the course too? basic 2d physics? How to render 2d and use 2d collisions and triggers that would be really good
@actsplosive
@actsplosive 2 года назад
I get 3 entities of the ItemPickup created. 2 children of the other. When I collide, the parent disappears leaving the 2 children behind. Very strange. Don't know where the children are coming from as I have only 1 ItemPickup in the sub scene. Seems to be because of the 2 materials Hologram_mat and Letter_mat on the ItemPickup. If I remove Letter_mat it works but the letter is gone.
@erenkaraymir8799
@erenkaraymir8799 Год назад
Hi i need upgrade score text every collision detected. can you help me?
@justinduynguyen2127
@justinduynguyen2127 4 года назад
it's so clear ,thank so much (y) . Can you do one more for Collision instead of Trigger ?
@autorotate1803
@autorotate1803 4 года назад
That seems like a lot of work to get an OnTriggerStay... but I think the performance benefits are worth it. Would you say it DOTS is ready to be used on a production environment?
@qin6409
@qin6409 2 года назад
Entity0.51 doesn't have JobComponentSystem anymore, that part might need change: [UpdateAfter(typeof(EndFramePhysicsSystem))] public partial class PickOnTriggerSystem : SystemBase { private BuildPhysicsWorld buildPhysicsWorld; private StepPhysicsWorld stepPhysicsWorld; protected override void OnCreate() { buildPhysicsWorld = World.GetOrCreateSystem(); stepPhysicsWorld = World.GetOrCreateSystem(); } // [BurstCompile] struct PickupOnTriggerSystemJob : ITriggerEventsJob { [ReadOnly] public ComponentDataFromEntity allPickups; [ReadOnly] public ComponentDataFromEntity allPlayers; public void Execute(TriggerEvent triggerEvent) { Entity entityA = triggerEvent.EntityA; Entity entityB = triggerEvent.EntityB; if (allPickups.HasComponent(entityA) && allPlayers.HasComponent(entityB)) { UnityEngine.Debug.Log("This:" + entityA + " Other:" + entityB); return; } if (allPickups.HasComponent(entityA) && allPlayers.HasComponent(entityB)) { UnityEngine.Debug.Log("Pickup Entity A:" + entityA + " collided with player Entity B:" + entityB); } else if (allPickups.HasComponent(entityA) && allPlayers.HasComponent(entityB)) { UnityEngine.Debug.Log("player Entity A:" + entityA + " collided with Pickup Entity B:" + entityB); } } } protected override void OnUpdate() { PickupOnTriggerSystemJob triggerJob = new PickupOnTriggerSystemJob() { allPickups = GetComponentDataFromEntity(true), allPlayers = GetComponentDataFromEntity(true) }; Dependency = triggerJob.Schedule(stepPhysicsWorld.Simulation, Dependency); } }
@nhatlinhtran3575
@nhatlinhtran3575 Год назад
thank you pretty much for this
@joepeters8746
@joepeters8746 4 года назад
Hello, do someboody know what happens, if both entities are triggers and we want to change both values of the entities? I am mean their could be alot trigger events beeing involved with the same Entity, so why we can change them?
@Ankhtepot
@Ankhtepot 3 года назад
Can't make it work in 2020.2 even after fixing all errors. Execute in PickupOnTriggerSystemJob is never triggered for some reason. Any ideas on how to fix it, please?
@Ankhtepot
@Ankhtepot 3 года назад
Fixed it, the problem was I ough to chose "Collision Response" to "Raise Trigger Events". Leaving it here if somebody else crashes into the same thing.
@MusicaPaLarumba
@MusicaPaLarumba 4 года назад
Hi, for each pickup entity, i can see 2 more pickup entities with SceneTag, obviously only the one with the pickupTag is deleted. do you have an idea of what is happening?
@lupidan
@lupidan 4 года назад
I´ve been looking into this. It seems the Pickup box model contains 2 meshes, with 2 different materials (that are the same material) For some reason, two child entities are created. It´s very strange, I am strill trying to figure it out. For the record, I am using Entities preview.7 - 0.11.0, Hybrid Renderer preview.18 - 0.5.1 and Unity Physics preview - 0.3.2
@lupidan
@lupidan 4 года назад
If you want a similar behaviour to the one present in the video, and move on to the next thing, just change the number of materials from the Pickup mesh to 1, it will hide the letter P yes, but it won´t create those children entities, and when you destroy the entity, it will properly disappear. Not sure if it´s a bug or something we should take care of when destroying an entity with multiple materials though.
@isaacryu
@isaacryu 4 года назад
I've been having the same issue. I tried to see if there was an easy way to access the children of an Entity in order to destroy them with EntityCommandBuffer as well, but I couldn't find an easy way to access them.
@isaacryu
@isaacryu 4 года назад
Turns out that if you download his finished version of this project there is a version of the pickup model that doesn't have any sub-meshes so it works correctly.
@shirosurfer8864
@shirosurfer8864 4 года назад
Wow ty vm. What do you think of a networking course? You are very good teaching Tomorrow I'll give this a try.. cool.
@GameAcademySchool
@GameAcademySchool 4 года назад
Shiro Surfer well this started because I wanted to replace my UNET course. the official Netcode that Unity is making is DOTS only, so I figured I needed to make this first
@polardevs8883
@polardevs8883 4 года назад
I cannot open a scene from the starter project that I pulled down. I get an error and crash that states "Size overflow in allocator. UnityEngine.GUIUtility.ProcessEvent(Int32 IntPtr)" I've tried a couple different versions of dependencies ensuring they were compatible with each other. I haven't tried upgrading the entire project to 2020.1 from 2019.3.14f1 so I might do that next. I deleted the Library/ folder to force Unity to re-import everything. Unity now just hangs. Any ideas on how to remediate my original issue?
@polardevs8883
@polardevs8883 4 года назад
Upgrading the project to 2020.1.0f1 and allowing Unity to re-import for the URP made this project work. I'm not sure why 2019.3 was giving me so many issues, but for anyone that may have this issue in the future give this a try.
@madhackademy3558
@madhackademy3558 4 года назад
Hi i started to follow a bit DOTS for Unity and i will follow your playlist but i dont know how you added the ECS in Projects => Create=>ECS (subfolder). I dont have the build and ECS in this contextual menu. If you have a link where you did this i would love to know. And it's rly good content Thx for sharing this knowledge MY BAD i got it after installing Entity but must say on 2020 there is some improvement or change that doesn't make this too easy ;)
@rotomon666
@rotomon666 4 года назад
just a note: hybrid renderer does not like Universal RP
@GameAcademySchool
@GameAcademySchool 4 года назад
The later packages seem to be okay, but I didn't check this one on the PC. Did the repo not work?
@scriptsengineer
@scriptsengineer 4 года назад
Work on 2020.1 in 0.11 Entities version + 0.5 Hybrid Render
@Ankhtepot
@Ankhtepot 3 года назад
In 2020.2 I had to use Hybrid renderer V2 in URP, else it wasn't working at all even with older versions of Entities and Hybrid Renderer (V1).
@ves3219
@ves3219 4 года назад
Пожалуйста следующий ролик про использование метода EntityManager в SystemBase а именно AddComponent, то GetComponent, SetComponent, RemoveComponent
@GameAcademySchool
@GameAcademySchool 4 года назад
This may have to wait for the full course.
@kennethgriffin5761
@kennethgriffin5761 3 года назад
I click the starter link everytime but I get the final project everytime. Tried to figure it out but I just gave up and I delete stuff til I get back to the starter project. Anyone else?
@GameAcademySchool
@GameAcademySchool 3 года назад
Sorry not sure why the link got whacked. You can see all of the commits here: github.com/UnityGameAcademy/DOTSTriggerEvents/commits/master I think it's supposed to be the fourth one: github.com/UnityGameAcademy/DOTSTriggerEvents/tree/211fdb75f5157d8deb84c1d5b84be178869f1e7e
@isaacryu
@isaacryu 4 года назад
Unity released a new version of Unity Physics, now 0.4.0, and the syntax for triggers seems to have changed. :/
@GameAcademySchool
@GameAcademySchool 4 года назад
Electric Avocado Bleh
@isaacryu
@isaacryu 4 года назад
@@GameAcademySchool Just checked it, turns out it's not that bad. The only differences are that the isTrigger button is gone from Physics Shape and is now replaced with Collision Response which when set to Raise Trigger Event has the same effect, and then triggerEvent.Entities.EntityA has changed to just triggerEvent.EntityA.
@siemasiemasiem
@siemasiemasiem 3 года назад
Everything was great till this part - looks like its already outdated :( I will wait on your course because you are a great teacher...
@diptarkadas5193
@diptarkadas5193 4 года назад
Man this is getting pretty complicated. Hopefully Unity will have a working visual scripting soon to make use of it. For some reason, this looks to be made for visual scripting.
@GameAcademySchool
@GameAcademySchool 4 года назад
They ARE building a visual scripting tool. The good news is that it will support DOTS right away so it will be more visual and be performant. They did buy Bolt recently and that does work better than Playmaker but it's still not fast compared to their Visual DOTS interface.
@diptarkadas5193
@diptarkadas5193 4 года назад
@@GameAcademySchool Yeah, I have heard about the visual scripting tool being built. Haven't used it myself, but everyone who talks about it says it's not up to the par yet. In any case, great tutorials. I was scared of ECS at first with all the weird syntaxes, but how you explained it with diagrams really helped. Thanks for your hard work :)
@degged
@degged 4 года назад
@@GameAcademySchool I believe that BOLT will be a ready-to-go solution for existing MonoBeh architecture. And their inHouse tool is developing straightly for DOTS visual scripting
@ves3219
@ves3219 4 года назад
Ooo eah
@splunkygamer8361
@splunkygamer8361 4 года назад
Your logo is a roll20 ha ha ha nice
@GameAcademySchool
@GameAcademySchool 4 года назад
Indeed.
@Punisher4xe
@Punisher4xe 3 года назад
WTF
Далее
DOTS Gameplay: Collision Events
18:21
Просмотров 10 тыс.
Unity DOTS: C# Job System
19:47
Просмотров 20 тыс.
НЕ ИГРАЙ В ЭТУ ИГРУ! 😂 #Shorts
00:28
DOTS Gameplay: Basic Player Input and Movement
22:23
Просмотров 23 тыс.
Options for Entity interaction - Unite Copenhagen
43:12
Unity DOTS: Components And Systems
18:50
Просмотров 16 тыс.
Pathfinding in Unity DOTS! (Insane Speed!!!)
24:56
Просмотров 132 тыс.
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,6 млн
Unity DOTS: System Base
12:47
Просмотров 15 тыс.
NVIDIA Needs to STOP - RTX 3050 & Misleading Branding
11:35
microsoft doubles down on recording your screen
10:00