Skip to content

Instantly share code, notes, and snippets.

@JamesKim2998
Created January 15, 2020 01:59
Show Gist options
  • Save JamesKim2998/ebe5e5dedc27b151bad4e587d2e02848 to your computer and use it in GitHub Desktop.
Save JamesKim2998/ebe5e5dedc27b151bad4e587d2e02848 to your computer and use it in GitHub Desktop.
class SomeScriptableObject : ScriptableObject
{
[SerializeField]
AssetReference _someAssetRef;
void DoSomething()
{
Addressables.LoadAssetAsync<Object>(_someAssetRef).Completed += asset =>
{
// Do something
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment