Show / Hide Table of Contents

Class VRAvatarHelper

A collection of helper methods for working with the VRAvatar system.

Inheritance
System.Object
VRAvatarHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Liminal.SDK.VR.Avatars
Assembly: Liminal.SDK.dll
Syntax
public static class VRAvatarHelper

Methods

| Improve this Doc View Source

EnsureLoadPrefab<T>(String)

Ensures the specified prefab exists, and returns the prefab. An exception will be thrown if the prefab does not exist.

Declaration
public static T EnsureLoadPrefab<T>(string name)
    where T : Object
Parameters
Type Name Description
System.String name

The name of the prefab.

Returns
Type Description
T

The prefab of the specified type and name.

Type Parameters
Name Description
T

The type of the prefab.

| Improve this Doc View Source

LimbTypeToInputDeviceHand(VRAvatarLimbType)

Maps a VRAvatarLimbType to its corresponding VRInputDeviceHand value.

Declaration
public static VRInputDeviceHand LimbTypeToInputDeviceHand(VRAvatarLimbType limbType)
Parameters
Type Name Description
VRAvatarLimbType limbType

The limb type to map.

Returns
Type Description
VRInputDeviceHand

The VRInputDeviceHand that matches the specified limb type. Returns None if the limb type cannot be mapped.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX