Skip to content

Commit

Permalink
Merge pull request #4 from mikhail-dcl/fix-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
m3taphysics authored Oct 26, 2023
2 parents 7e5ee04 + fec8667 commit 1eaeb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ It is inspired by [Unity Entities' System Groups](https://docs.unity3d.com/Packa
- Make sure Unity 2022.2.9f1 is installed (the project is linked against this version)
- Create a release build
- Copy `Arch.SystemGroups.dll` into `Plugins` directory of your Unity project.
- Copy `Arch.SystemGroups.SourceGenerator.dll` into the desired directory of your project, exclude all platforms, add a new Label "RoslynGenerator" to the assembly (see [Unity docs](https://docs.unity3d.com/Manual/roslyn-analyzers.html) for more information)
- Copy `Arch.SystemGroups.SourceGenerator.dll` into the desired directory of your project, exclude all platforms, add a new Label "RoslynAnalyzer" to the assembly (see [Unity docs](https://docs.unity3d.com/Manual/roslyn-analyzers.html) for more information)

## Update In Group

Expand Down Expand Up @@ -305,4 +305,4 @@ For every system and group a custom class inherited from `AttributesInfoBase` is
It is possible to access it in two ways:
1. Use a strongly-typed static `Metadata` field. The instance is created lazily upon the first retrieval. So if it is not used no memory overhead will present.
2. If a system inherits from `PlayerLoopSystem<TWorld>` the overriden method `protected abstract AttributesInfoBase GetMetadataInternal();` will be generated providing the access to the `AttributesInfo` class instance.
From this point `T GetAttribute<T>()` and `IReadOnlyList<T> GetAttributes<T>()` methods are available. They don't rely on reflection either so the performance is similar to a simple `switch`/`if` expression.
From this point `T GetAttribute<T>()` and `IReadOnlyList<T> GetAttributes<T>()` methods are available. They don't rely on reflection either so the performance is similar to a simple `switch`/`if` expression.

0 comments on commit 1eaeb7d

Please sign in to comment.