Show / Hide Table of Contents

    Class DebugVisualHelper

    Helper class for creating and placing multiple prefabs at different locations in the scene

    Inheritance
    Object
    DebugVisualHelper
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class DebugVisualHelper : MonoBehaviour

    Fields

    _scale

    Scale applied to the provided prefab when shown at the specified location

    Declaration
    protected Vector3 _scale
    Field Value
    Type Description
    Vector3

    prefab

    Prefab to create at the provided location

    Declaration
    protected GameObject prefab
    Field Value
    Type Description
    GameObject

    Methods

    CreateOrUpdateVisual(ref GameObject, Vector3, Quaternion)

    Call to transform or create and transform a GameObject to the provided position and rotation.

    Declaration
    public void CreateOrUpdateVisual(ref GameObject visual, Vector3 position, Quaternion rotation)
    Parameters
    Type Name Description
    GameObject visual

    If null, a new GameObject will be istantiated from the provided prefab. If non-null the provided GameObject's position and rotation will be updated

    Vector3 position

    Position to apply to the provided GameObject

    Quaternion rotation

    Rotation to apply to the provided GameObject

    CreateOrUpdateVisual(ref GameObject, Vector3, Quaternion, Vector3)

    Call to transform or create and transform a GameObject to the provided position and rotation.

    Declaration
    public void CreateOrUpdateVisual(ref GameObject visual, Vector3 position, Quaternion rotation, Vector3 scale)
    Parameters
    Type Name Description
    GameObject visual

    If null, a new GameObject will be istantiated from the provided prefab. If non-null the provided GameObject's position and rotation will be updated

    Vector3 position

    Position to apply to the provided GameObject

    Quaternion rotation

    Rotation to apply to the provided GameObject

    Vector3 scale

    SetTransform(GameObject, Vector3, Quaternion, Vector3)

    Declaration
    protected void SetTransform(GameObject visual, Vector3 position, Quaternion rotation, Vector3 scale)
    Parameters
    Type Name Description
    GameObject visual
    Vector3 position
    Quaternion rotation
    Vector3 scale
    In This Article
    • Fields
      • _scale
      • prefab
    • Methods
      • CreateOrUpdateVisual(ref GameObject, Vector3, Quaternion)
      • CreateOrUpdateVisual(ref GameObject, Vector3, Quaternion, Vector3)
      • SetTransform(GameObject, Vector3, Quaternion, Vector3)
    Back to top Generated by DocFX