예제 #1
0
    /// <summary>
    /// Inspector GUI event for immediate-mode Editor GUI.
    /// </summary>
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        if (TangoPrefabInspectorHelper.CheckForTangoApplication((MonoBehaviour)target, ref m_tangoApplication))
        {
            TangoPrefabInspectorHelper.CheckVideoOverlayPermissions(m_tangoApplication, true, false);
        }
    }
    /// <summary>
    /// Inspector GUI event for immediate-mode Editor GUI.
    /// </summary>
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        if (TangoPrefabInspectorHelper.CheckForTangoApplication((MonoBehaviour)target, ref m_tangoApplication))
        {
            TangoPrefabInspectorHelper.CheckMotionTrackingPermissions(m_tangoApplication);
        }
    }
예제 #3
0
    /// <summary>
    /// Inspector GUI event for immediate-mode Editor GUI.
    /// </summary>
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        TangoARPoseController inspectedObject = (TangoARPoseController)target;

        if (TangoPrefabInspectorHelper.CheckForTangoApplication(inspectedObject, ref m_tangoApplication))
        {
            TangoPrefabInspectorHelper.CheckMotionTrackingPermissions(m_tangoApplication);

            TangoPrefabInspectorHelper.CheckAreaDescriptionPermissions(m_tangoApplication,
                                                                       inspectedObject.m_useAreaDescriptionPose);
        }
    }
    /// <summary>
    /// Inspector GUI event for immediate-mode Editor GUI.
    /// </summary>
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        TangoPointCloud inspectedObject = (TangoPointCloud)target;

        if (TangoPrefabInspectorHelper.CheckForTangoApplication(inspectedObject, ref m_tangoApplication))
        {
            TangoPrefabInspectorHelper.CheckDepthPermissions(m_tangoApplication);

            // Need motion tracking to transform points to world space.
            TangoPrefabInspectorHelper.CheckMotionTrackingPermissions(m_tangoApplication);

  //          TangoPrefabInspectorHelper.CheckAreaDescriptionPermissions(m_tangoApplication,
//                                                                        inspectedObject.m_useAreaDescriptionPose);
        }
    }