您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
1.1 KiB
34 行
1.1 KiB
namespace UnityEditor.Recorder
|
|
{
|
|
[CustomPropertyDrawer(typeof(FrameRateType))]
|
|
class FrameRateProperyDrawer : EnumProperyDrawer<FrameRateType>
|
|
{
|
|
protected override string ToLabel(FrameRateType value)
|
|
{
|
|
switch (value)
|
|
{
|
|
case FrameRateType.FR_23:
|
|
return "23.97";
|
|
case FrameRateType.FR_24:
|
|
return "Film (24)";
|
|
case FrameRateType.FR_25:
|
|
return "PAL (25)";
|
|
case FrameRateType.FR_29:
|
|
return "NTSC (29.97)";
|
|
case FrameRateType.FR_30:
|
|
return "30";
|
|
case FrameRateType.FR_50:
|
|
return "50";
|
|
case FrameRateType.FR_59:
|
|
return "59.94" ;
|
|
case FrameRateType.FR_60:
|
|
return "60";
|
|
case FrameRateType.FR_CUSTOM:
|
|
return "Custom";
|
|
|
|
default:
|
|
return "unknown";
|
|
}
|
|
}
|
|
}
|
|
}
|