浏览代码

Merge pull request #269 from Unity-Technologies/tooltips_for_randomizers

Added tooltips to sample randomizers
/0.8.0-preview.1_staging
GitHub 4 年前
当前提交
30e1eab1
共有 7 个文件被更改,包括 24 次插入8 次删除
  1. 5
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/BackgroundObjectPlacementRandomizer.cs
  2. 3
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/ColorRandomizer.cs
  3. 4
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/ForegroundObjectPlacementRandomizer.cs
  4. 3
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/HueOffsetRandomizer.cs
  5. 3
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/RotationRandomizer.cs
  6. 11
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/SunAngleRandomizer.cs
  7. 3
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/TextureRandomizer.cs

5
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/BackgroundObjectPlacementRandomizer.cs


/// <summary>
/// The Z offset component applied to all generated background layers
/// </summary>
[Tooltip("The Z offset applied to positions of all placed objects.")]
[Tooltip("The number of background layers to generate.")]
[Tooltip("The minimum distance between the centers of the placed objects.")]
[Tooltip("The width and height of the area in which objects will be placed. These should be positive numbers and sufficiently large in relation with the Separation Distance specified.")]
[Tooltip("The list of Prefabs to be placed by this Randomizer.")]
public GameObjectParameter prefabs;
GameObject m_Container;

3
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/ColorRandomizer.cs


static readonly int k_BaseColor = Shader.PropertyToID("_BaseColor");
/// <summary>
/// Describes the range of random colors to assign to tagged objects
/// The range of random colors to assign to target objects
[Tooltip("The range of random colors to assign to target objects.")]
public ColorHsvaParameter colorParameter;
/// <summary>

4
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/ForegroundObjectPlacementRandomizer.cs


/// <summary>
/// The Z offset component applied to the generated layer of GameObjects
/// </summary>
[Tooltip("The Z offset applied to positions of all placed objects.")]
[Tooltip("The minimum distance between the centers of the placed objects.")]
[Tooltip("The width and height of the area in which objects will be placed. These should be positive numbers and sufficiently large in relation with the Separation Distance specified.")]
[Tooltip("The list of Prefabs to be placed by this Randomizer.")]
public GameObjectParameter prefabs;
GameObject m_Container;

3
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/HueOffsetRandomizer.cs


static readonly int k_HueOffsetShaderProperty = Shader.PropertyToID("_HueOffset");
/// <summary>
/// The range of hue offsets to assign to tagged objects
/// The range of random hue offsets to assign to target objects
[Tooltip("The range of random hue offsets to assign to target objects.")]
public FloatParameter hueOffset = new FloatParameter { value = new UniformSampler(-180f, 180f) };
/// <summary>

3
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/RotationRandomizer.cs


public class RotationRandomizer : Randomizer
{
/// <summary>
/// Defines the range of random rotations that can be assigned to tagged objects
/// The range of random rotations to assign to target objects
[Tooltip("The range of random rotations to assign to target objects.")]
public Vector3Parameter rotation = new Vector3Parameter
{
x = new UniformSampler(0, 360),

11
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/SunAngleRandomizer.cs


public class SunAngleRandomizer : Randomizer
{
/// <summary>
/// The hour of the day (0 to 24)
/// The range of hours in a day (default is 0 to 24)
[Tooltip("The range of hours in a day (default is 0 to 24).")]
/// The day of the year (0 being Jan 1st and 364 being December 31st)
/// The range of days in a year with 0 being Jan 1st and 364 being December 31st (default is 0 to 364)
public FloatParameter dayOfTheYear = new FloatParameter { value = new UniformSampler(0, 365)};
[Tooltip("The range of days in a year with 0 being Jan 1st and 364 being December 31st (default is 0 to 364).")]
public FloatParameter dayOfTheYear = new FloatParameter { value = new UniformSampler(0, 364)};
/// The earth's latitude (-90 is the south pole, 0 is the equator, and +90 is the north pole)
/// The range of latitudes. A latitude of -90 is the south pole, 0 is the equator, and +90 is the north pole (default is -90 to 90).
[Tooltip("The range of latitudes. A latitude of -90 is the south pole, 0 is the equator, and +90 is the north pole (default is -90 to 90).")]
public FloatParameter latitude = new FloatParameter { value = new UniformSampler(-90, 90)};
/// <summary>

3
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/TextureRandomizer.cs


#endif
/// <summary>
/// The list of textures to sample and apply to tagged objects
/// The list of textures to sample and apply to target objects
[Tooltip("The list of textures to sample and apply to target objects.")]
public Texture2DParameter texture;
/// <summary>

正在加载...
取消
保存