Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

そのままインストールしてもコンパイルされない #20

@shimoe

Description

@shimoe

Robotics-Nav2-SLAM-Exampleのプロジェクトに対して
このパッケージを「Package Manager」→「Add Package from git url」からインストールしたところ,以下のような警告文が出てコンパイルされませんでした.

Script 'Packages/com.frj.unity-sensors/Scripts/Samples/Velodyne/VLP16.cs' will not be compiled because it exists outside the Assets folder and does not to belong to any assembly definition file.
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[]) (at /home/bokken/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:211)

これはVLP16.csについてですが,他のスクリプトにも同様のエラーが出ています.

エラー文で調べたところAssembly Definition File(以下ADF)を作成すれば解決するとのことだったので
試しにUnity上でUnitySensors/UnitySensors.asmdefを作成し,InspectorからAssembly Definition ReferencesにそれらしいADFを指定するとコンパイルされ利用できるようになりました.
Unity初学者なので指定したADFが必要十分か,そもそもこの対応が正しかったのかわかりませんが,このままではAssembly Definitionを設定してあるプロジェクトにおいてこのパッケージは使えないのではないでしょうか?

参考にしたサイト

P.S.
余談ですが,UnitySensors/RawData/CSV/Livox/LICENSEにmetaファイルが付随していないので毎回警告文が出ます.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions