Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:chark/unity-scriptable-objects in…
Browse files Browse the repository at this point in the history
…to master
  • Loading branch information
Edvinas01 committed Oct 3, 2020
2 parents f364ab7 + dbd86d1 commit 51dd210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Game Events
<p align="center">
<img width="100%" src="events.png" alt="Diagram showing how data is shared using events."/>
<img width="75%" src="events.png" alt="Diagram showing how data is shared using events."/>
</p>

Game events allow to decouple prefabs from direct dependencies such as scene or nested prefab game objects. The biggest benefit of events is that they can be referenced in isolated prefabs, this allows to later avoid having to set them up in the scene.
Expand Down Expand Up @@ -90,7 +90,7 @@ Import the `GameEvents` sample which shows how to use game events in various sit

## Mutable Objects
<p align="center">
<img width="100%" src="mutable-objects.png" alt="Diagram showing how data is shared when using mutable objects."/>
<img width="75%" src="mutable-objects.png" alt="Diagram showing how data is shared when using mutable objects."/>
</p>

Mutable objects allow using `ScriptableObject` assets to store and share data. They are handy when a lot of behaviours need access to specific data. In such cases, mutable objects can be injected in dependant behaviours instead of forming hard dependencies between them or using singletons.
Expand Down

0 comments on commit 51dd210

Please sign in to comment.