Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Game development
/
Unity ScriptableObject assets
Two enemies share one ActorDefinition. Where should each enemy's current health normally …
from Unity ScriptableObject assets
Unity 6.6
beginner
1 min
Two enemies share one ActorDefinition. Where should each enemy's current health normally live?
On the enemy component or an ordinary state object owned by it
In a mutable currentHealth field on the shared asset
In the result of ActorDefinition.GetInstanceID()
In AssetDatabase from Player runtime code
Check
Ask AI about this kata
Report an error
next kata
The two parameters refer to the same HealthDefinition asset. What does Run log?
Predict the output
A new version is available
Reload