Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2017.3.X, 2018.1.X
Votes
1
Found in
2017.2.0a1
2017.2.0f3
Issue ID
963958
Regression
Yes
When a class inherits from StateMachineBehaviour into a DLL, Unity does not reference it
Steps to reproduce:
1. Extract the attached archive into a folder
2. Open the Visual Studio solution located at DLLTest/DLLTest.sln
3. Look at the file DLLTest/TestMonoBehaviour.cs. It inherits from MonoBehaviour
4. Look at the file DLLTest/TestStateMachineBehaviour.cs. It inherits from StateMachineBehaviour
5. Add the references to the splitted dlls(UnityEngine.AnimationModule.dll, UnityEngine.CoreModule.dll, UnityEngine.dll) located inside a Unity folder(e.g. D:\Program Files\Unity\2017.2.0p3\Editor\Data\Managed\UnityEngine) and set Copy Local to False
6. Build the solution (The VS project is configured to put the generated dll into the Assets folder of the Unity project)
7. Open the Unity project located at the root of the archive
8. In the Project view, expand the dll DLLTest
9. The class TestMonoBehaviour is found but not the class TestStateMachineBehaviour
Actual results: The class TestStateMachineBehaviour is found
Expected results: The class TestStateMachineBehaviour should be found
Note:
It reproduces with the full dll(UnityEngine.dll) as well located inside a Unity folder(e.g. D:\Program Files\Unity\2017.2.0p3\Editor\Data\Managed)
Reproduced with: 2017.2.0p3, 2017.3.0b11, 2018.1.0a6
Not reproduced with: 2017.1.2p3
Fixed in: 2018.2.0a1
Backported to: 2017.3.1p2, 2018.1.0b7
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Packman: The same asset data is displayed differently in "Import" and "Remove" popups
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
Nakano37
Mar 20, 2018 21:39
We are still seeing this occur in 2018.1.0b7
when you search in your project for a class that extends StateMachineBehaviour it doesn't show up. When you search in your project for a class that extends MonoBehaviour it does show up.
talgeer
Jan 28, 2018 04:43
The issue is marked as resvoled. Can we know when the fix will be available ? This issue is still here in 2018.1.0b4
fxanimation
Dec 20, 2017 15:09
Also reproduced with 2017.3.0f2 and 2017.3.0f3.