Forum Discussion
jrod914
9 years agoHonored Guest
Oculus Standard Package to Unity
I downloaded Oculus's Standard Asset Package for Unity 5 from the Oculus Downloads page and imported the package into my project but when I went to 'run' the project I was hit with an error message saying, "all compiler errors have to be fixed to enter playmode". I imported the package directly from Oculus>Development>Downloads and have not altered them in any way so I have no idea why this error is occurring. When I delete these packages and run an alternate script I've created the game runs just fine. I only receive error messages when I use Oculus's Standard Asset Package. Please help. Any help will be much appreciated.
Ultimately I'm looking to use Oculus's Character Controller in my Unity game in hopes that the Oculus Rift can control the character's movement direction and not just the looking direction.
Ultimately I'm looking to use Oculus's Character Controller in my Unity game in hopes that the Oculus Rift can control the character's movement direction and not just the looking direction.
10 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionThis should be in the Unity forum in the Developer section (I'll move it). You can switch sections from the drop-down menu on the top right.
What version of Unity are you using? Did you download the correct package? If for Unity 5, you should use the Oculus Utilities for Unity 5. I don't recall there being any errors. - jrod914Honored GuestI'm using Unity 5.4.0f3 (64-bit) and I downloaded the Oculus Utilities for Unity 5 v1.6.0
- vrdavebOculus StaffIt sounds like one of your scripts isn't compiling. The utilties compile for me on 5.4.0f3. Can you share %LOCALAPPDATA%\Unity\Editor\Editor.log?
- jrod914Honored Guest
- vrdavebOculus StaffI don't see an error in that log, but it does look like you are using Intel HD graphics, which will not perform well in VR. I assume you are building for Gear VR. Can you please send a log where the error actually occurred?
- jrod914Honored GuestI intent to build for GearVR as well as Oculus Rift. I've attached the log with the error below.
- vrdavebOculus Staff> Assets/Standard Assets/CrossPlatformInput/Scripts/AxisTouchButton.cs(3,19): error CS0234: The type or namespace name `EventSystems' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
This isn't related to VR support. It looks like you are using older Standard Assets with 5.4 and they no longer compile with the new API. Can you delete the Standard Assets folder and re-import the packages you need? Looks like you need the cross platform input package. - jrod914Honored GuestI don't believe I'm missing any assembly references, but I could be wrong. I just got a new computer and all that is installed on it is Unity and Oculus. From there I imported a project I created on another computer, which used Unity 5.3.5f1. Maybe the problem is coming from creating the project in another version of Unity on another computer? I did delete the standard asset package that came with the version of Unity I got on the new computer and tried to import just the Oculus Standard Package but still had no luck. I've attached the editor log below.
- jrod914Honored GuestAlso where would I need to look to find the cross platform input package?
- vrdavebOculus Staff> I imported a project I created on another computer, which used Unity 5.3.5f1.
This is the problem. The "Are you missing an assembly reference" question is just part of Unity's compiler error message.
> where would I need to look to find the cross platform input package
See https://docs.unity3d.com/Manual/HOWTO-InstallStandardAssets.html
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device