Skip to content

Commit

Permalink
feat. add camera displayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-Yulin committed Apr 5, 2024
1 parent 015c1cb commit 339cb3a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Assets/Scenes/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -3213,7 +3213,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 431162344}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -1.0145437}
m_LocalPosition: {x: 0, y: 0, z: -0.7}
m_LocalScale: {x: 0.6666667, y: 0.8, z: 6.6666675}
m_Children: []
m_Father: {fileID: 688983090}
Expand Down Expand Up @@ -5241,7 +5241,7 @@ GameObject:
- component: {fileID: 688983095}
- component: {fileID: 688983094}
m_Layer: 0
m_Name: Cube
m_Name: Video Displayer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand All @@ -5255,7 +5255,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 688983089}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.117, y: -0.044192076, z: 0.36882207}
m_LocalPosition: {x: 0.117, y: 0.23, z: 0.252}
m_LocalScale: {x: 0.3, y: 0.25, z: 0.03}
m_Children:
- {fileID: 431162345}
Expand Down Expand Up @@ -5368,12 +5368,12 @@ MonoBehaviour:
m_EditorClassIdentifier:
hostTransform: {fileID: 688983090}
manipulationType: 3
twoHandedManipulationType: 7
twoHandedManipulationType: 3
allowFarManipulation: 1
useForcesForNearManipulation: 1
oneHandRotationModeNear: 1
oneHandRotationModeFar: 1
releaseBehavior: 3
releaseBehavior: 0
transformSmoothingLogicType:
reference: Microsoft.MixedReality.Toolkit.Utilities.DefaultTransformSmoothingLogic,
Microsoft.MixedReality.Toolkit.SDK
Expand Down
9 changes: 9 additions & 0 deletions Assets/Script/CamReceiver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.WSA;

public class CamReceiver : MonoBehaviour
{

}
11 changes: 11 additions & 0 deletions Assets/Script/CamReceiver.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Assets/Script/UI/DetailMenuChooser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ public class DetailMenuChooser : MonoBehaviour
public void ChooseMenu(string name)
{
string wholeName = name + " Menu";
foreach (Transform child in transform)
{
if (child.name == wholeName)
{
child.gameObject.SetActive(true);
foreach (Transform child in transform)
{
if (child.name == wholeName)
{
child.gameObject.SetActive(true);
}
else
{
child.gameObject.SetActive(false);
}
}
}
}
}

0 comments on commit 339cb3a

Please sign in to comment.