Search Unity

(Case 1122498) BuildScript.buildCompleted is never called after BuildPlayerContent()

Discussion in 'Addressables' started by MNNoxMortem, Jan 30, 2019.

  1. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    It looks like BuildScript.buildCompleted is never called. Has anyone else noticed that? I would have expected that the callback would be called after any AddressableAssetSettings.BuildPlayerContent(); and so far it never was called.

    The only Find Usage riders shows are in OnEditorPlayModeChanged and this does not look like it calls it after a build or is it expected to be called with a change to PlayModeStateChange after a build?


    Code (CSharp):
    1. private static void OnBuildPlayerContentCompleted(AddressableAssetBuildResult addressableAssetBuildResult){Debug.Log("Blub");}
    2. BuildScript.buildCompleted += OnBuildPlayerContentCompleted;
    3. AddressableAssetSettings.BuildPlayerContent();
     
    Last edited: Jan 31, 2019
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Very possible that we introduced this in 0.5.3 when we changed how building works (stopped building automatically during a player build). I added a ticket to look into it.
     
    MNNoxMortem likes this.