Skip to content

volvis/Asset-Injection-Unity-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asset-Injection-Unity

Provides an attribute for automatically inserting assets to serialized fields.

[SerializeField, InjectAsset(typeof(EventService))]
EventService service;

Its intended use is mainly linking ScriptableObject assets to scripts. It does so by injecting the first asset of given type from the AssetDatabase to the field if the field has not been already set.

This is an Editor script, so it does nothing during runtime.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages