Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

'Debug' alias conflict

Discussion in 'Addressables' started by dotsquid, May 13, 2019.

  1. dotsquid

    dotsquid

    Joined:
    Aug 11, 2016
    Posts:
    224
    Hi there. I decided to give Addressables a try and the first thing I felt over was the 'Debug' alias being used in UnityEditor.Build.Pipeline.Utilities.BuildLogger
    The problem is that we use our own wrapper for 'UnityEngine.Debug' in our project and now we have a conflict. I.e.
    Namespace '<global namespace>' contains a definition conflicting with alias 'Debug'
    error CS0576: Library\PackageCache\com.unity.scriptablebuildpipeline@1.4.1-preview\Editor\Utilities\BuildLogger.cs(29,13)
    If the developers of Addressables would be so kind to move using Debug = UnityEngine.Debug; into UnityEditor.Build.Pipeline.Utilities namespace, I believe it could solve the problem.
    UPD. Probably, there are some other scripts which declare an alias for 'Debug' too.
     
    Last edited: May 13, 2019
    RecursiveFrog likes this.
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    thanks for pointing this out. I opened a ticket for us to clean this up.
     
  3. dotsquid

    dotsquid

    Joined:
    Aug 11, 2016
    Posts:
    224
    Awesome, thanks!
     
  4. dotsquid

    dotsquid

    Joined:
    Aug 11, 2016
    Posts:
    224
    Hi. Any news on this?
     
  5. dotsquid

    dotsquid

    Joined:
    Aug 11, 2016
    Posts:
    224
    It seems that the problem is fixed since 1.1.3-preview. Thanks a lot!
     
    unity_bill likes this.