Preliminary Exploration of ECS 1.0 pre

foreword

Take advantage of the new year to study ECS

Install

create project

It is best to create a 3D URP rendering pipeline project with version 2022.2 or higher
create project

Wait patiently
Load project

Open Package Manager

Open Package Manager

add package

Click Add package by name...to install the package , enter the
Add package by name
package name , click the button to install the package (if you want to add a physical system and then install this, you need to package and install this ) will automatically install the package and its dependenciescom.unity.entities.graphicsAdd
com.havok.physics
com.unity.platforms
Enter the package name and click Add

Automatically install packages and package dependencies
You can click on Entitiesthe package to view the installed dependencies
Packages and dependencies are installed

Modify project settings

Enter Project Settings...
Open Project Settings...
and tick Enter Play Mode Settingsthe following so that running the project will be fasterEnter Play Mode Options
Check Enter Play Mode Options under Enter Play Mode Settings

Modify Preferences settings

open Preferences
Preferences
set Scene View ModetoRuntime Data
Set Runtime Data

Create project folder

Click Readmeand click Remove Readme Assetsto delete the files that come with the URP
Delete URP description file
to create a folder
Create project folder

create subscene

create subscene
Create a EntityScenescene named
save subscene
after the creation is complete, you can see
After creating
SubScenethe following objects will be automatically converted toEntity

Summarize

After installing ECS1.0 pre, you can prepare to write something

Guess you like

Origin blog.csdn.net/a71468293a/article/details/128762200