UnityEditor.AssetDatabase.GetDependencies does not find C# script parent scripts.

UnityEditor.AssetDatabase.GetDependencies does not find C# script parent scripts.

https://issuetracker.unity3d.com/issues/unityeditor-dot-assetdatabase-dot-getdependencies-does-not-find-c-number-script-parent-scripts

Nov 16, 2018

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.

  1. Response avatar

    Resolution Note (fix version ):

    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.

发布了64 篇原创文章 · 获赞 36 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/kuangben2000/article/details/104043991