浏览代码

fixed names and added more checks

/3.1
Alexandra Serralta 5 年前
当前提交
b0f6b3e8
共有 3 个文件被更改,包括 12 次插入13 次删除
  1. 5
      Assets/Scenes/ARFoundationMenu/Menu.unity
  2. 8
      Assets/Scripts/UX/BackButton.cs
  3. 12
      Assets/Scripts/UX/CheckAvailableFeatures.cs

5
Assets/Scenes/ARFoundationMenu/Menu.unity


m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_Interactable: 0
m_TargetGraphic: {fileID: 507951179}
m_OnClick:
m_PersistentCalls:

planeOcclusion: {fileID: 724437755}
pointCloud: {fileID: 786358437}
faceTracking: {fileID: 1116959538}
faceBlendShapes: {fileID: 507951178}
humanSegmentation: {fileID: 2111581279}
lightEstimation: {fileID: 11739801}
planeDetection: {fileID: 1172329691}

m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Face Blend Shapes
m_Text: Blend Shapes
--- !u!222 &1133466515
CanvasRenderer:
m_ObjectHideFlags: 0

8
Assets/Scripts/UX/BackButton.cs


{
public GameObject backButton;
/*
public ARSceneSelectUI menuManager;
public bool faceMenu;
public bool lightMenu;
public bool humanSegmentationMenu;
public bool planeMenu;*/
// Start is called before the first frame update
void Start()
{
if (Application.CanStreamedLevelBeLoaded("Menu"))

12
Assets/Scripts/UX/CheckAvailableFeatures.cs


public Button planeOcclusion;
public Button pointCloud;
public Button faceTracking;
public Button faceBlendShapes;
public Button humanSegmentation;
public Button lightEstimation;
public Button planeDetection;

if(faceDescriptors.Count > 0)
{
faceTracking.interactable = true;
#if UNITY_IOS
faceBlendShapes.interactable = true;
#endif
}
if(occlusionDescriptors.Count > 0)
{

{
foreach(XRCameraSubsystemDescriptor cameraDescriptor in cameraDescriptors)
{
if(cameraDescriptor.supportsAverageBrightness && cameraDescriptor.supportsAverageColorTemperature &&
cameraDescriptor.supportsAverageIntensityInLumens && cameraDescriptor.supportsCameraConfigurations &&
cameraDescriptor.supportsCameraImage && cameraDescriptor.supportsDisplayMatrix)
//TODO: Change face blend to blendshapes (Only for ios)
if((cameraDescriptor.supportsAverageBrightness || cameraDescriptor.supportsAverageIntensityInLumens) &&
cameraDescriptor.supportsAverageColorTemperature && cameraDescriptor.supportsCameraConfigurations &&
cameraDescriptor.supportsCameraImage)
{
lightEstimation.interactable = true;
}

正在加载...
取消
保存