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

VIU_WAVEVR is not defined with Wave XR SDK 4.x/5.x #255

Open
mhama opened this issue Jul 13, 2023 · 5 comments
Open

VIU_WAVEVR is not defined with Wave XR SDK 4.x/5.x #255

mhama opened this issue Jul 13, 2023 · 5 comments

Comments

@mhama
Copy link
Contributor

mhama commented Jul 13, 2023

Hi, I'm a bit confused when I import Wave XR SDK 4.x/5.x, because it looks like VIU_WAVEVR is not defined automatically.
My understanding is that to use WaveVR module, VIU_WAVEVR should be defined.

The condition to define VIU_WAVEVR is this:

Add(new SymbolRequirement()
{
symbol = "VIU_WAVEVR",
reqTypeNames = new string[] { "WaveVR" },
reqFileNames = new string[] { "WaveVR.cs" },
});

But, I can't find WaveVR type, nor WaveVR.cs in Wave XR SDK 4.x/5.x. And it seems like VIU_WAVEVR is not defined actually.
Though, it looks like I can still enable WaveVR module in VIUSetting.

Is it expected behaviour?

@chengnay
Copy link
Collaborator

Hi @mhama,
VIU_WAVEVR is for previous version which is imported from unitypackage,
Current Wave XR SDK 4.x/5.x will use different define.
Are you getting any error or issue?

@mhama
Copy link
Contributor Author

mhama commented Jul 27, 2023

VIU_WAVEVR is for previous version which is imported from unitypackage,
Current Wave XR SDK 4.x/5.x will use different define.
Are you getting any error or issue?

Hi, @chengnay ,
Thank you for the reply!

There's no error/issues. It's (mostly) ok if it's intentional.
I just wanted to split our app's code which depends on Wave SDK using VIU_WAVEVR and found this. Though the symbol maybe not designed to be used like this.

But there may be a bit of a problem about readability of the code.
I confused a bit when I read the code of WaveVRModule.cs .

  • About property isWaveVRPluginDetected
    • I think that the functionality of this property seems to be a bit different from the name. I thought that this property returns true when Wave SDK is detected, whatever version it is.
      public static readonly bool isWaveVRPluginDetected =
      #if VIU_WAVEVR
      true;
      #else
      false;
      #endif
    • If this property is only for older versions of SDK, the name of the property is better to represent it.

Though, it's just my opinion and what's really important is that it works. So please take it with a grain of salt.
Thanks,

@chengnay
Copy link
Collaborator

Hi @mhama,

Thanks for your comments.
For latest Wave SDK using UnityXR, we change it to WAVEXR.
Just curious why you will need to split your code if you are using VIU?
I think spliting code should be already done from VIU side.
Maybe you are using some feature that VIU did not provide, such as passthrough.

@mhama
Copy link
Contributor Author

mhama commented Aug 2, 2023

Hi @chengnay, thanks for your reply,

For latest Wave SDK using UnityXR, we change it to WAVEXR.
Just curious why you will need to split your code if you are using VIU?
I think spliting code should be already done from VIU side.
Maybe you are using some feature that VIU did not provide, such as passthrough.

Yes, we wanted to use video pass-through functionality of WaveVR SDK.

@chengnay
Copy link
Collaborator

chengnay commented Aug 2, 2023

Hi @mhama,
You can add your custom defined symbols to differentiate between Oculus and Wave.
Unity Editor>Project Settings>Player>Other Settings(Script Compilation)

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

2 participants