Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.2, 2019.3

Votes

3

Found in

2019.2

2019.2.0b5

2019.3

Issue ID

1160664

Regression

Yes

Custom built DLL's scripts which have classes derived from UIBehaviour cannot be added as a component anymore

Scripting

-

How to reproduce:
1. Download and extract the attached 'DLLScripts.zip' archive somewhere on your computer (there are two scripts, NewBehaviourScript.cs and NewBehaviourScript2.cs)
2. Download and extract the attached '1160664repro.zip' project
3. Navigate to the Editor directory
4. Run this command from the Windows PowerShell:
"./Unity.exe -batchmode -nographics -projectPath "path_to_the_project_directory" -executeMethod "MLPluginBuilder.BuildSelected" -assemblyName "Assets\Custom.dll" -scripts "path_to_the_DLLScripts_directory" -allowUnsafeCode "true" -quit -logfile"
5. Once the DLL is built in the Assets folder, open the project
6. Try to add both scripts as a component to any GameObject

Expected results: Both scripts are eligible to add as a component
Actual results: NewBehaviourScript cannot be added since it derives from BaseInputModule while NewBehaviourScript2 can be added since it derives directly from MonoBehaviour

Reproducible with: 2019.2.0f1, 2019.3.0a11
Not reproducible with: 2019.1.13f1 and below

Notes:
- This is happening because UGUI broke out as a separate package
- Happens with any class that derives from UIBehaviour

Comments (7)

  1. A7d1c05eab4b1606dd2648ad099eeee6?d=mm

    fenoko

    May 24, 2020 20:13

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...
    ví da cá sấu đẹp https://bopcasau.weebly.com/bop-vi-da-ca-sau.html

  2. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Apr 12, 2020 19:27

    I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    Zahnarztpraxis Zürich https://www.styleyoursmile.ch/

  3. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Apr 11, 2020 12:41

    I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
    xo so mien bac https://auth.voxmedia.com/signup?return_to=https://www.sbnation.com/users/dogilycc

  4. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Apr 06, 2020 07:08

    Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..
    Re cua van phong http://jumkak.com/profile-78039-thegioiremxx.html

  5. F8b18ce4177f4da16844a817b9702d13?d=mm

    armanayraRE

    Oct 09, 2019 00:31

    UI objects become highlighted red and indicate an error, but the code compiles just fine. Is there another temp fix for this? Been waiting for a fix for some time and none of the last 4 updates have addressed! :/

  6. F8572a6973ff6b9ffa160f33e2d6dc84?d=mm

    grojo

    Aug 28, 2019 15:06

    Do we have any updates on this?

  7. Dd05985d9ef65de97fca753db2c6e69a?d=mm

    Chris_ML

    Aug 08, 2019 14:13

    Hello,

    Are there any updates on when this can be fixed? This is an issue that is shown in Lumin SDK 0.22 / Unity 2019.2 and is preventing many developers from being able to upgrade SDKs.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.