Search Issue Tracker
By Design
Votes
0
Found in
Issue ID
1101481
Regression
No
UnityEditor.AssetDatabase.GetDependencies does not find C# script parent scripts.
Steps to Reproduce:
- Open the attached project.
- Open the scene "Assets\Scene.unity"
- Press play
Expected:
When play is pressed, the "Log Scene Dependencies" script, which sits on the gameobject of the same name, prints out all of the dependencies for the current scene. Included in this should be"
- Assets/Scene.unity
- Assets/LogSceneDependencies.cs
- Assets/NewBehaviourScript.cs
- Assets/NewBehaviourScriptParent.cs
Observed:
Assets/NewBehaviourScriptParent.cs is not found. The NewBehaviourScript class inherits from the NewBehaviourScriptParent class, so Assets/NewBehaviourScriptParent.cs should be listed.
Found using the Windows Editor in editor version 2019.1.0a9.
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
- Crash on vkGetInstanceProcAddr when setting graphics API to "Vulkan" on Fantasy Kingdom learning project
- Overlay Camera "clear depth" not working on Vulkan+Pixel8
- Shadows from Shadow Caster 2D using 2D Colliders show incorrectly when tiles are removed at runtime
- Stencil buffer is incorrectly cleared across Vulkan render passes during depth-only clear operations when using CommandBuffer API
- A non-existent webpage is opened when "Learn about Unity Build Automation" hyperlink is clicked
Resolution Note:
The Asset Database has no knowledge of the C# code structure, it only knows about the assets dependencies expressed through the Unity serialization system. For the asset database, a C# file is just another asset type.