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