您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
21 行
736 B
21 行
736 B
#if HDRP_PRESENT
|
|
|
|
using System;
|
|
using UnityEditor.Rendering.HighDefinition;
|
|
using UnityEngine.Perception.GroundTruth;
|
|
|
|
namespace UnityEditor.Perception.GroundTruth
|
|
{
|
|
[CustomPassDrawer(typeof(ObjectCountPass))]
|
|
public class ObjectCountPassEditor : BaseCustomPassDrawer
|
|
{
|
|
protected override void Initialize(SerializedProperty customPass)
|
|
{
|
|
AddProperty(customPass.FindPropertyRelative(nameof(GroundTruthPass.targetCamera)));
|
|
AddProperty(customPass.FindPropertyRelative(nameof(ObjectCountPass.SegmentationTexture)));
|
|
AddProperty(customPass.FindPropertyRelative(nameof(ObjectCountPass.LabelingConfiguration)));
|
|
base.Initialize(customPass);
|
|
}
|
|
}
|
|
}
|
|
#endif
|