C# 클래스 HTC.UnityPlugin.Vive.ViveRole

Provide static APIs to retrieve device index by semantic role Same mapping logic as SteamVR_ControllerManager does
파일 보기 프로젝트 열기: Humon/server 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultBodyRoleHandler HTC.UnityPlugin.Vive.BodyRoleHandler
DefaultDeviceRoleHandler HTC.UnityPlugin.Vive.DeviceRoleHandler
DefaultHandRoleHandler HTC.UnityPlugin.Vive.HandRoleHandler
DefaultTrackerRoleHandler HTC.UnityPlugin.Vive.TrackerRoleHandler

공개 메소드들

메소드 설명
GetDeviceIndex ( DeviceRole role ) : uint

Returns device index of the device identified by the role Returns INVALID_DEVICE_INDEX if the role doesn't assign to any device

GetDeviceIndex ( HandRole role ) : uint

Returns device index of the device identified by the role Returns INVALID_DEVICE_INDEX if the role doesn't assign to any device

GetDeviceIndexEx ( Type type, int roleValue ) : uint
GetDeviceIndexEx ( role ) : uint

비공개 메소드들

메소드 설명
GetDeviceClass ( uint deviceIndex ) : VRModuleDeviceClass
GetModelNumber ( uint deviceIndex ) : string
GetSerialNumber ( uint deviceIndex ) : string
Initialize ( ) : void
IsValidIndex ( uint index ) : bool
OnDeviceConnected ( uint deviceIndex, bool connected ) : void
OnTrackedDeviceRoleChanged ( ) : void
TryGetDeviceIndexBySerialNumber ( string serialNumber, uint &deviceIndex ) : bool

메소드 상세

GetDeviceIndex() 공개 정적인 메소드

Returns device index of the device identified by the role Returns INVALID_DEVICE_INDEX if the role doesn't assign to any device
public static GetDeviceIndex ( DeviceRole role ) : uint
role DeviceRole
리턴 uint

GetDeviceIndex() 공개 정적인 메소드

Returns device index of the device identified by the role Returns INVALID_DEVICE_INDEX if the role doesn't assign to any device
public static GetDeviceIndex ( HandRole role ) : uint
role HandRole
리턴 uint

GetDeviceIndexEx() 공개 정적인 메소드

public static GetDeviceIndexEx ( Type type, int roleValue ) : uint
type Type
roleValue int
리턴 uint

GetDeviceIndexEx() 공개 정적인 메소드

public static GetDeviceIndexEx ( role ) : uint
role /// TRole can be DeviceRole, TrackerRole or any other enum type that have ViveRoleEnumAttribute. /// Use ViveRole.ValidateViveRoleEnum() to validate role type ///
리턴 uint

프로퍼티 상세

DefaultBodyRoleHandler 공개적으로 정적으로 프로퍼티

public static BodyRoleHandler,HTC.UnityPlugin.Vive DefaultBodyRoleHandler
리턴 HTC.UnityPlugin.Vive.BodyRoleHandler

DefaultDeviceRoleHandler 공개적으로 정적으로 프로퍼티

public static DeviceRoleHandler,HTC.UnityPlugin.Vive DefaultDeviceRoleHandler
리턴 HTC.UnityPlugin.Vive.DeviceRoleHandler

DefaultHandRoleHandler 공개적으로 정적으로 프로퍼티

public static HandRoleHandler,HTC.UnityPlugin.Vive DefaultHandRoleHandler
리턴 HTC.UnityPlugin.Vive.HandRoleHandler

DefaultTrackerRoleHandler 공개적으로 정적으로 프로퍼티

public static TrackerRoleHandler,HTC.UnityPlugin.Vive DefaultTrackerRoleHandler
리턴 HTC.UnityPlugin.Vive.TrackerRoleHandler