Allows you to use the drag and drop interface to link to non-memory resident references of assets located in Resources folders.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Editor
Example
Scripts
.gitignore
LICENSE
README.md
screen.png

README.md

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.