Search Results for

    Show / Hide Table of Contents

    Class SourceCubeController

    Create a new cube prefab when hovering on the source cube

    Inheritance
    Object
    SourceCubeController
    Implements
    ICreateCube
    ICubeVisualFeedback
    Namespace: XRC.Students.SU2023.IN03.Chen
    Assembly: cs.temp.dll.dll
    Syntax
    public class SourceCubeController : MonoBehaviour, ICreateCube, ICubeVisualFeedback

    Fields

    Grabbale

    The cube prefab - the simplest unit of grouping interactions

    Declaration
    public GameObject Grabbale
    Field Value
    Type Description
    GameObject

    Methods

    AddCube(GameObject)

    Create a cube (prefab) at the position of the the sourceCube Set the new cube as the same color as the source cube.

    Declaration
    public void AddCube(GameObject sourceCube)
    Parameters
    Type Name Description
    GameObject sourceCube

    the sourceCube containing the target position of adding a new cube

    Awake()

    Get the interactable component of the attached gameObject Add listener to hoverEntered

    Declaration
    public void Awake()

    SetColor(GameObject, GameObject)

    Declaration
    public void SetColor(GameObject sourceCube, GameObject newCube)
    Parameters
    Type Name Description
    GameObject sourceCube
    GameObject newCube

    Implements

    ICreateCube
    ICubeVisualFeedback
    In This Article
    Back to top XR Collaboratory