Skip to content

paulhayes/UnityResourceReference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityResourceReference

Allows you to use the Unity Inspector panel to link non-memory resident references of assets located in Resources folders.

###Classes

  • ResourceTexture
  • ResourceSprite
  • ResourceAudioClip
  • ResourceRuntimeAnimatorController
  • ResourceTextAsset

###Usage In your Monobehaviour or ScripableObject instead of a direct reference to the asset, use one of the Resource types listed above. You can then drag the attach the appropriate asset using the inspector panel Make sure your asset is within a Resources directory.

When you want to get your hands on the asset you can either use the Get() function ( which is syncronous ) or LoadAsync which returns a resource ref.

Please see Example.cs for a more complete example of usage.

About

Allows you to use the drag and drop interface to link to non-memory resident references of assets located in Resources folders.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages