• This project
    • Loading...
  • Sign in

2021-1-capstone-design1 / JSH_Project5

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • JSH_Project5
  • UnityProject-master
  • Assets
  • Oculus
  • Avatar
  • Scripts
  • OvrAvatarBase.cs
  • 박창현's avatar
    프로젝트1 · a3ef1c80
    a3ef1c80
    박창현 authored 2021-06-15 21:36:27 +0900
OvrAvatarBase.cs 487 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
using Oculus.Avatar;

public class OvrAvatarBase : OvrAvatarComponent
{
    ovrAvatarBaseComponent component = new ovrAvatarBaseComponent();

    void Update()
    {
        if (owner == null)
        {
            return;
        }

        if (CAPI.ovrAvatarPose_GetBaseComponent(owner.sdkAvatar, ref component))
        {
            UpdateAvatar(component.renderComponent);
        }
        else
        {
            owner.Base = null;
            Destroy(this);
        }
    }
}