Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace "VRM" can't be found by any other script. #1103

Closed
LucaBGt opened this issue Jul 17, 2021 · 4 comments
Closed

Namespace "VRM" can't be found by any other script. #1103

LucaBGt opened this issue Jul 17, 2021 · 4 comments

Comments

@LucaBGt
Copy link

LucaBGt commented Jul 17, 2021

バグについて

Using the namespace or trying to add a script to the namespace "VRM" results in an error about that the namespace "can not be found".

再現方法

例: 動作の再現させる手順:

  1. Create a new script or import a scirpt (I did the VFS_SDK)
  2. See the error: Assets/[...]: error CS0246: The type or namespace name 'VRM' could not be found (are you missing a using directive or an assembly reference?)

動作を再現できる最小の例(モデルファイルなど)がある場合は、このissueに添付してください。

I don't know why the namespace isn't visible to some scripts and not to others. I can't think about any reason this shouldn't work.

期待する動作を明確かつ簡潔に記述してください。

スクリーンショット

環境情報

Mac OSX Big Sur 11.2.3
Unity 2020.3.5f1, also tried in 2019.4.1f1
UniVRM version 0.78.0_58b

追加の状況・背景

This issue came up while trying to use the VSF_SDK, but no script outside of the UniVRM scripts could access the namespace.

@yahagi-day
Copy link

VRM/Runtime/VRM(Assembly Definition Asset)のAutoReferencedにチェックを入れると解決します。
私はadfについて詳しくないためこの方法が最善であるかはわかりません。
@ousttrue

image

@yahagi-day
Copy link

yahagi-day commented Jul 18, 2021

多くの場合Assembly-CSharpから参照するのでAuto Referencedはデフォルトでtrueであるべきに見えます
またUniGLTFも同様です。

@LucaBGt
Copy link
Author

LucaBGt commented Jul 18, 2021

Thank you!
This was the correct solution.
The setting was not automatically enabled, though.

@Santarh
Copy link
Contributor

Santarh commented Sep 3, 2021

Some asmdef files has been set Auto Referenced true since v0.79.0 !

@Santarh Santarh reopened this Sep 3, 2021
@Santarh Santarh closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants