Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

(Case 1086863) Component script cannot configure anymore after converting into embedded package

Discussion in '2018.3 Beta' started by optimise, Oct 2, 2018.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,070
    After converting to embedded package, the script attached to game object becomes cannot be configured anymore and shows associated script cannot be loaded warning. I really hope this issue can be fixed then I can plug in/out package like a boss.

    Before
    upload_2018-10-2_18-52-30.png

    After
    upload_2018-10-2_18-51-22.png
     
    LeonhardP likes this.
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,904
    Are you using an assembly definition file in your package?
    What does the package contents look like?
    Did you keep the script meta file when you moved it over?
     
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,070
    I didn't use assembly definition file.
    upload_2018-10-4_15-45-37.png
    Yes. I do keeping the script meta file.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,904
  5. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
    No need for that, we have them already.
     
    optimise and karl_jones like this.
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,904
    Hey. We looked at your example project and the following warning is emitted

    If you are using scripts inside of a package they must be within an assembly definition file(asmdef).

    Please note that embedded packages are not yet a publicly documented feature and are still considered "internal", notably to minimize this kind of situations.
     
    LeonhardP and optimise like this.
  7. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,070
    Does it means the requirement of package is either use assembly definition file for scripts or make it as dll?
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,904
    A package must have all its scripts within one or more assembly definition files. Just stick an asmdef at the root for all your player scripts and another one if you have any editor scripts. Your project does not need to use asmdefs, just the package. The asmdef will create a dll for you.