In this episode, we create a new Chaser Entity to showcase how to create relationships between Entities. We can add a component to hold another Entity's ID, then use the ComponentDataFromEntity structure to get access to its Translation. With a few extra tweaks to our existing Systems, the new Chaser Entity is born!
Starter Project:
github.com/Uni...
Final Project:
github.com/Uni...
TimeStamps:
0:44 GameAcademy.school Updates
1:09 StartProject and Packages
1:48 Disabling the Asteroids
2:17 Setup Chaser GameObject
4:00 ChaserTag
5:14 TargetData
7:23 Revising FaceDirectionSystem
9:31 Input Parameters for Entities.ForEach
10:10 ComponentDataFromEntity
13:40 Play Testing FaceDirection
14:00 Revising MoveForwardSystem
14:39 Play Testing Chaser
15:44 Man V Missiles
16:10 Adding more Chasers
16:49 Enabling the Asteroids
17:23 Chaser Subscene
18:16 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
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!
11 окт 2024