GitHub
4 年前
当前提交
89b0bc75
共有 25 个文件被更改,包括 160 次插入 和 74 次删除
-
1.gitignore
-
4TestProjects/PerceptionHDRP/Assets/Terrain Data.asset
-
10TestProjects/PerceptionHDRP/Packages/manifest.json
-
26TestProjects/PerceptionHDRP/Packages/packages-lock.json
-
4TestProjects/PerceptionHDRP/ProjectSettings/PackageManagerSettings.asset
-
4TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt
-
8TestProjects/PerceptionURP/Packages/manifest.json
-
26TestProjects/PerceptionURP/Packages/packages-lock.json
-
4TestProjects/PerceptionURP/ProjectSettings/PackageManagerSettings.asset
-
11TestProjects/PerceptionURP/ProjectSettings/ProjectSettings.asset
-
4TestProjects/PerceptionURP/ProjectSettings/ProjectVersion.txt
-
2TestProjects/PerceptionURP/ProjectSettings/QualitySettings.asset
-
4TestProjects/PerceptionURP/ProjectSettings/UnityConnectSettings.asset
-
6com.unity.perception/CHANGELOG.md
-
27com.unity.perception/Documentation~/Randomization/Parameters.md
-
6com.unity.perception/Runtime/GroundTruth/Labelers/SemanticSegmentationLabeler.cs
-
4com.unity.perception/Runtime/GroundTruth/SemanticSegmentationCrossPipelinePass.cs
-
18com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs
-
12com.unity.perception/Tests/Runtime/GroundTruthTests/PerceptionCameraIntegrationTests.cs
-
6com.unity.perception/package.json
-
3com.unity.perception/Editor/Utilities.meta
-
3com.unity.perception/Editor/Utilities/ParameterUIElementsEditor.cs.meta
-
33com.unity.perception/Editor/Utilities/ParameterUIElementsEditor.cs
-
8TestProjects/PerceptionURP/Assets/StreamingAssets.meta
4
TestProjects/PerceptionHDRP/Assets/Terrain Data.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
m_EditorVersion: 2019.4.12f1 |
|||
m_EditorVersionWithRevision: 2019.4.12f1 (225e826a680e) |
|||
m_EditorVersion: 2019.4.16f1 |
|||
m_EditorVersionWithRevision: 2019.4.16f1 (e05b6e02d63e) |
|
|||
m_EditorVersion: 2019.4.12f1 |
|||
m_EditorVersionWithRevision: 2019.4.12f1 (225e826a680e) |
|||
m_EditorVersion: 2019.4.16f1 |
|||
m_EditorVersionWithRevision: 2019.4.16f1 (e05b6e02d63e) |
|
|||
fileFormatVersion: 2 |
|||
guid: 7c33b05b860544a5a026b97302d0358e |
|||
timeCreated: 1611791860 |
|
|||
fileFormatVersion: 2 |
|||
guid: ec638a81755645739ca5834e2e44fc13 |
|||
timeCreated: 1611791890 |
|
|||
using UnityEditor.UIElements; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace UnityEngine.Experimental.Perception.Editor |
|||
{ |
|||
/// <summary>
|
|||
/// Derive this class to force the Unity Editor to render the default inspector using UIElements for an Object that includes a Parameter field.
|
|||
/// to allow parameter UIs to render properly
|
|||
/// </summary>
|
|||
public abstract class ParameterUIElementsEditor : UnityEditor.Editor |
|||
{ |
|||
public override VisualElement CreateInspectorGUI() |
|||
{ |
|||
var rootElement = new VisualElement(); |
|||
CreatePropertyFields(rootElement); |
|||
return rootElement; |
|||
} |
|||
|
|||
void CreatePropertyFields(VisualElement rootElement) |
|||
{ |
|||
var iterator = serializedObject.GetIterator(); |
|||
iterator.NextVisible(true); |
|||
do |
|||
{ |
|||
if (iterator.name == "m_Script") |
|||
continue; |
|||
var propertyField = new PropertyField(iterator.Copy()); |
|||
propertyField.Bind(serializedObject); |
|||
rootElement.Add(propertyField); |
|||
} while (iterator.NextVisible(false)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 01c33d1bbfad749909de900dc92115a0 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue