您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
985 B

#if HDRP_PRESENT
using UnityEditor;
using UnityEditor.Rendering.HighDefinition;
namespace UnityEngine.Perception.Sensors.Editor
{
[CustomPassDrawer(typeof(InstanceSegmentationPass))]
public class InstanceSegmentationPassEditor : BaseCustomPassDrawer
{
protected override void Initialize(SerializedProperty customPass)
{
var targetCameraProperty = customPass.FindPropertyRelative(nameof(GroundTruthPass.targetCamera));
AddProperty(targetCameraProperty);
AddProperty(customPass.FindPropertyRelative(nameof(InstanceSegmentationPass.targetTexture)));
AddProperty(customPass.FindPropertyRelative(nameof(InstanceSegmentationPass.reassignIds)));
AddProperty(customPass.FindPropertyRelative(nameof(InstanceSegmentationPass.idStart)));
AddProperty(customPass.FindPropertyRelative(nameof(InstanceSegmentationPass.idStep)));
base.Initialize(customPass);
}
}
}
#endif