Search Unity

Weird exception

Discussion in 'Addressables' started by Deleted User, Oct 21, 2018.

  1. Deleted User

    Deleted User

    Guest

  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    This is most likely one of two issues...
    1. you are trying to use addressables too early. We are fixing things so there won't be a "too early", but as of 0.4.6, you can't call from Awake()
    2. you have a group setup to be using the hosting service, but the service is not enabled.

    try those and get back to me.

    -Bill
     
  3. Deleted User

    Deleted User

    Guest

    Thank you. Solved by using addressables after scene load:

    Code (CSharp):
    1.   [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
    2.         public static void InitializeAfterSceneLoad()
    3.         {
    4.             Addressables.InitializationOperation.Completed += async =>
    5.                 {
    6.                 // snip
    7.                 };
    8.         };