浏览代码

merging with master

/4.0
Alexandra Serralta 5 年前
当前提交
44df22ae
共有 4 个文件被更改,包括 609 次插入73 次删除
  1. 596
      Assets/Scenes/ARFoundationMenu/Menu.unity
  2. 53
      Assets/Scripts/UX/ARSceneSelectUI.cs
  3. 3
      Assets/Scripts/UX/ActiveMenu.cs
  4. 30
      Assets/Scripts/UX/CheckAvailableFeatures.cs

596
Assets/Scenes/ARFoundationMenu/Menu.unity
文件差异内容过多而无法显示
查看文件

53
Assets/Scripts/UX/ARSceneSelectUI.cs


set { m_PlaneDetectionMenu = value; }
}
[SerializeField]
GameObject m_MeshingMenu;
public GameObject meshingMenu
{
get { return m_MeshingMenu; }
set { m_MeshingMenu = value; }
}
void Start()
{
if(ActiveMenu.currentMenu == MenuType.FaceTracking)

m_HumanSegmentationMenu.SetActive(true);
m_AllMenu.SetActive(false);
}
else if(ActiveMenu.currentMenu == MenuType.Meshing)
{
m_MeshingMenu.SetActive(true);
m_AllMenu.SetActive(false);
}
}
public void SimpleARButtonPressed()

SceneManager.LoadScene("ARWorldMap", LoadSceneMode.Single);
}
public void CameraImageButtonPressed()
{
SceneManager.LoadScene("CameraImage", LoadSceneMode.Single);
}
public void EnvironmentProbesButtonPressed()
public void CameraImageButtonPressed()
SceneManager.LoadScene("EnvironmentProbes", LoadSceneMode.Single);
SceneManager.LoadScene("CpuImages", LoadSceneMode.Single);
}
public void ObjectTrackingButtonPressed()

m_FaceTrackingMenu.SetActive(false);
m_PlaneDetectionMenu.SetActive(false);
m_HumanSegmentationMenu.SetActive(false);
m_MeshingMenu.SetActive(false);
public void MeshingMenuButtonPressed()
{
ActiveMenu.currentMenu = MenuType.Meshing;
m_MeshingMenu.SetActive(true);
m_AllMenu.SetActive(false);
}
public void ClassificationMeshesButtonPressed()
{
SceneManager.LoadScene("ClassificationMeshes", LoadSceneMode.Single);
}
public void NormalMeshesButtonPressed()
{
SceneManager.LoadScene("NormalMeshes", LoadSceneMode.Single);
}
public void OcclusionMeshesButtonPressed()
{
SceneManager.LoadScene("OcclusionMeshes", LoadSceneMode.Single);
}
public void InteractionButtonPressed()
{
}
}
}

3
Assets/Scripts/UX/ActiveMenu.cs


FaceTracking,
PlaneDetection,
HumanSegmentation,
Meshing
}
public static class ActiveMenu

}
}
}

30
Assets/Scripts/UX/CheckAvailableFeatures.cs


set { m_FaceBlendShapes = value; }
}
[SerializeField]
Button m_FaceRegions;
public Button faceRegions
{
get { return m_FaceRegions; }
set { m_FaceRegions = value; }
}
[SerializeField]
Button m_HumanSegmentation;
public Button humanSegmentation

set { m_PlaneClassification = value; }
}
[SerializeField]
Button m_Meshing;
public Button meshing
{
get { return m_Meshing; }
set { m_Meshing = value; }
}
// Start is called before the first frame update
void Start()
{

List<XRSessionSubsystemDescriptor> sessionDescriptors = new List<XRSessionSubsystemDescriptor>();
SubsystemManager.GetSubsystemDescriptors<XRSessionSubsystemDescriptor>(sessionDescriptors);
var meshDescriptors = new List<XRMeshSubsystemDescriptor>();
SubsystemManager.GetSubsystemDescriptors<XRMeshSubsystemDescriptor>(meshDescriptors);
if(planeDescriptors.Count > 0 && rayCastDescriptors.Count > 0)
{
m_SimpleAR.interactable = true;

m_FaceTracking.interactable = true;
#if UNITY_IOS
m_FaceBlendShapes.interactable = true;
#endif
#if UNITY_ANDROID
m_FaceRegions.interactable = true;
#endif
}

m_PlaneOcclusion.interactable = true;
}
if(meshDescriptors.Count > 0)
{
m_Meshing.interactable = true;
}
}
}
正在加载...
取消
保存