Modifica

Condividi tramite


PrefabSpawner Class

Definition

Add to any Object to spawn a prefab to it, according to preference

public ref class PrefabSpawner : Microsoft::MixedReality::Toolkit::Input::BaseFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityInputHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityInputHandler<float>, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/PrefabSpawner")]
public class PrefabSpawner : Microsoft.MixedReality.Toolkit.Input.BaseFocusHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputHandler<float>, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/PrefabSpawner")>]
type PrefabSpawner = class
    inherit BaseFocusHandler
    interface IMixedRealityInputHandler
    interface IMixedRealityBaseInputHandler
    interface IEventSystemHandler
    interface IMixedRealityInputHandler<single>
Public Class PrefabSpawner
Inherits BaseFocusHandler
Implements IEventSystemHandler, IMixedRealityInputHandler, IMixedRealityInputHandler(Of Single)
Inheritance
UnityEngine.MonoBehaviour
PrefabSpawner
Derived
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

PrefabSpawner()

Fields

prefab

Properties

FocusEnabled

Is focus enabled for this Component?

(Inherited from BaseFocusHandler)
Focusers

The list of IMixedRealityPointers that are currently focused on this GameObject

(Inherited from BaseFocusHandler)
HasFocus

Does this object currently have focus by any IMixedRealityPointer?

(Inherited from BaseFocusHandler)

Methods

HandleTap()
OnBeforeFocusChange(FocusEventData)

Focus event that is raised before the focus is actually changed.

(Inherited from BaseFocusHandler)
OnFocusChanged(FocusEventData)

Focus event that is raised when the focused object is changed.

(Inherited from BaseFocusHandler)
OnFocusEnter(FocusEventData)

The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider.

OnFocusExit(FocusEventData)

The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider.

SpawnableActivated(GameObject)

Explicit Interface Implementations

IMixedRealityInputHandler.OnInputDown(InputEventData)

Input Down updates from Interactions, Keys, or any other simple input.

IMixedRealityInputHandler.OnInputUp(InputEventData)

Input Up updates from Interactions, Keys, or any other simple input.

IMixedRealityInputHandler<Single>.OnInputChanged(InputEventData<Single>)

Raised input event updates from the type of input specified in the interface handler implementation.

Applies to