浏览代码

removed some commented code from the parameter class

/main
Steven Leal 4 年前
当前提交
70103f43
共有 1 个文件被更改,包括 10 次插入25 次删除
  1. 35
      com.unity.perception/Runtime/Randomization/Parameters/Parameter.cs

35
com.unity.perception/Runtime/Randomization/Parameters/Parameter.cs


[Serializable]
public abstract class Parameter
{
/// <summary>
/// Returns the display name of a parameter type
/// </summary>
/// <param name="type">A subclass of Parameter</param>
/// <returns>The parameter type's display name</returns>
public static string GetDisplayName(Type type)
{
return type.Name.Replace("Parameter", "");
}
// /// <summary>
// /// The name of the parameter
// /// </summary>
// [HideInInspector] public string name = "Parameter";
//
// /// <summary>
// /// The target this parameter apply a sample to
// /// </summary>
// [HideInInspector, SerializeField] public ParameterTarget target = new ParameterTarget();
//
// /// <summary>
// /// Indicates whether this parameter has a target GameObject
// /// </summary>
// public bool hasTarget => target.gameObject != null;
/// <summary>
/// The sample type generated by this parameter
/// </summary>

protected Parameter()
{
InitializeSamplers();
}
/// <summary>
/// Returns the display name of a parameter type
/// </summary>
/// <param name="type">A subclass of Parameter</param>
/// <returns>The parameter type's display name</returns>
public static string GetDisplayName(Type type)
{
return type.Name.Replace("Parameter", "");
}
/// <summary>

正在加载...
取消
保存