Guides

VRTK_SDKInfo

extends ISerializationCallbackReceiver

Overview

Holds all the info necessary to describe an SDK.

Class Variables

  • public Type type { get private set } - The type of the SDK.
  • public string originalTypeNameWhenFallbackIsUsed { get private set } - The name of the type of which this SDK info was created from. This is only used if said type wasn't found.
  • public SDK_DescriptionAttribute description { get private set } - The description of the SDK.

Class Methods

Create<BaseType, FallbackType, ActualType>/0

public static VRTK_SDKInfo[] Create<BaseType, FallbackType, ActualType>() where BaseType : SDK_Base where FallbackType : BaseType where ActualType : BaseType

  • Type Params
    • BaseType - The SDK base type. Must be a subclass of SDK_Base.
    • FallbackType - The SDK type to fall back on if problems occur. Must be a subclass of BaseType.
    • ActualType - The SDK type to use. Must be a subclass of BaseType.
  • Parameters
    • none
  • Returns
    • VRTK_SDKInfo[] - Multiple newly created instances.

Creates new SDK infos for a type that is known at compile time.

Create<BaseType, FallbackType>/1

public static VRTK_SDKInfo[] Create<BaseType, FallbackType>(Type actualType) where BaseType : SDK_Base where FallbackType : BaseType

  • Type Params
    • BaseType - The SDK base type. Must be a subclass of SDK_Base.
    • FallbackType - The SDK type to fall back on if problems occur. Must be a subclass of `BaseType.
  • Parameters
    • Type actualType - The SDK type to use. Must be a subclass of `BaseType.
  • Returns
    • VRTK_SDKInfo[] - Multiple newly created instances.

Creates new SDK infos for a type.

VRTK_SDKInfo/1

public VRTK_SDKInfo(VRTK_SDKInfo infoToCopy)

  • Parameters
    • VRTK_SDKInfo infoToCopy - The SDK info to copy.
  • Returns
    • none

Creates a new SDK info by copying an existing one.


Did this page help you?