11
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Unity と Mac で開発する Oculus Go アプリ #9 OVRPlugin.cs error CS0103: The name `OVRP_1_15_0' does not exist in the current context

Posted at

次のエラーが出ました

Assets/Oculus/VR/Scripts/OVRPlugin.cs(2876,18): error CS0103: The name `OVRP_1_15_0' does not exist in the current context

Oculus のフォーラムでも取り上げられていました
https://forums.oculusvr.com/developer/discussion/comment/621440

原因はMac OSだからでしょうか

解決方法

OVRP_1_15_0を使っている該当項目に OVRPLUGIN_UNSUPPORTED_PLATFORM の判定を入れる

		frustum = default(Frustumf2);
#if !OVRPLUGIN_UNSUPPORTED_PLATFORM
		if (version >= OVRP_1_15_0.version)
		{
			Result result = OVRP_1_15_0.ovrp_GetNodeFrustum2(nodeId, out frustum);
			if (result != Result.Success)
			{
				return false;
			}
			else
			{
				return true;
			}
		}
		else
    #endif
		{
			return false;
		}

これでエラーは消えた

11
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?