Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiely committed Jul 2, 2022
1 parent bac3fa8 commit a2d64d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ auto velNew = w.GetComponent<Velocity>(e);

In case there are more different components on your entity you would like to change the value of you can achive it via SetComponent chaining:
```cpp
// Change Velocity's value.
// Change Velocity's value on entity "e"
w.SetComponent<Velocity>(e, {0, 0, 2}).
// Change Position's value on entity "e"
SetComponent<Position>({0, 100, 0}).
// Change...
SetComponent...;
```
Expand Down

0 comments on commit a2d64d2

Please sign in to comment.