Todd Stinson
4 年前
当前提交
8c52554c
共有 12 个文件被更改,包括 221 次插入 和 1113 次删除
-
229Assets/Scenes/ARFoundationMenu/Menu.unity
-
6Assets/Scenes/Depth/DepthImages.unity
-
953Assets/Scenes/Depth/SimpleOcclusion.unity
-
2Assets/Scenes/HumanTracking/HumanBodyTracking3D.unity
-
7Assets/Scripts/TestDepthImage.cs
-
29Assets/Scripts/UX/ARSceneSelectUI.cs
-
2Assets/Scripts/UX/ActiveMenu.cs
-
33Assets/Scripts/UX/CheckAvailableFeatures.cs
-
8Packages/manifest.json
-
3.github/pull_request_template.md
-
51Assets/Scripts/UX/CheckRuntimeDepth.cs
-
11Assets/Scripts/UX/CheckRuntimeDepth.cs.meta
953
Assets/Scenes/Depth/SimpleOcclusion.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
# Please create an issue instead |
|||
|
|||
Hi there! Thanks for your input; however, we are not accepting pull requests at this time. If you have a suggestion or think you've found a bug, please create an [issue](https://github.com/Unity-Technologies/arfoundation-samples/issues/new/choose) instead. |
|
|||
using System; |
|||
using System.Text; |
|||
using Unity.Collections.LowLevel.Unsafe; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
namespace UnityEngine.XR.ARFoundation.Samples |
|||
{ |
|||
/// <summary>
|
|||
/// This component tests for depth functionality and enables/disables
|
|||
/// a text message on the screen reporting that depth is not suppoted.
|
|||
/// </summary>
|
|||
public class CheckRuntimeDepth : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
[Tooltip("The AROcclusionManager which will manage depth functionality.")] |
|||
AROcclusionManager m_OcclusionManager; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>AROcclusionManager</c>.
|
|||
/// </summary>
|
|||
public AROcclusionManager occlusionManager |
|||
{ |
|||
get { return m_OcclusionManager; } |
|||
set { m_OcclusionManager = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Text m_DepthAvailabilityInfo; |
|||
|
|||
/// <summary>
|
|||
/// The UI Text used to display information about the availability of depth functionality.
|
|||
/// </summary>
|
|||
public Text depthAvailabilityInfo |
|||
{ |
|||
get { return m_DepthAvailabilityInfo; } |
|||
set { m_DepthAvailabilityInfo = value; } |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
Debug.Assert(m_OcclusionManager != null, "no occlusion manager"); |
|||
Debug.Assert(m_DepthAvailabilityInfo != null, "no text box"); |
|||
m_DepthAvailabilityInfo.enabled = ((m_OcclusionManager.descriptor?.supportsHumanSegmentationStencilImage == false) |
|||
&& (m_OcclusionManager.descriptor?.supportsHumanSegmentationDepthImage == false) |
|||
&& (m_OcclusionManager.descriptor?.supportsEnvironmentDepthImage == false)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 3604c16c635de4e029b7ec13aed43bee |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue