Created
January 15, 2020 01:59
-
-
Save JamesKim2998/ebe5e5dedc27b151bad4e587d2e02848 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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