question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when SDK_OCULUS_AVATAR is checked

See original GitHub issue

I’m using: Unity 2018.1.1f1 Oculus Avatar SDK 1.26 VRTK 3.3.0

In SDK_Manager script I check SDK_OCULUS_AVATAR and try to run it gives the error.

Assets/VRTK/Source/SDK/Oculus/SDK_OculusController.cs(692,32): error CS0122: `OvrAvatar.AssetsDoneLoading’ is inaccessible due to its protection level

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
bddckrcommented, Jul 22, 2018

Multiple solutions here:

  1. Tell Oculus to fix their change they did to make this private as it’s needed by developers (not just by VRTK).
  2. Fix it in that Oculus script yourself by just changing private to public.
  3. Fix it by using an older Oculus package version that doesn’t have that change to private yet.
3reactions
Arctelcommented, Jan 22, 2020

Had this issue today and in OvrAvatar on line 179, took AssetsDoneLoading line out of the #ifAVATAR_INTERNAL. It now looks like so:

#if AVATAR_INTERNAL
public AvatarControllerBlend BlendController;
#endif
public UnityEvent AssetsDoneLoading = new UnityEvent();

Had to add using UnityEngine.Events; at the top to make that work.

Now it works and haven’t had any problems from that change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question - help!! error when sdk_oculus_avatar is selected
I have already installed both oculus integration and vrtk in my project. everything works fine as long as i do not select the...
Read more >
Meta Avatars: entitlement check fails in playmode
Playing with Meta Avatars SDK again, and now I'm working on ... and an error in the console (see below) saying the entitlement...
Read more >
Oculus Unity 3D Development Error ...
My friend and I are working with the Oculus Avatar SDK in Unity3D for a school project, and upon updating to the new...
Read more >
Getting started with Oculus Touch and Avatar SDK in Unity ...
So go to Edit -> Project Settings -> Player and make sure that the “Virtual Reality Supported” flag is checked and that Oculus...
Read more >
I'm having issues with my Unity project or the VRChat SDK
You've imported an editor asset that is outdated or is no longer supported, causing it to conflict with the current version of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found