浏览代码

Merge pull request #183 from Unity-Technologies/undo-moved-from

Remove MovedFrom attribute for the Experimental namespace
/main
GitHub 4 年前
当前提交
43f894fd
共有 37 个文件被更改,包括 0 次插入74 次删除
  1. 2
      com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameter.cs
  2. 2
      com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameterBase.cs
  3. 2
      com.unity.perception/Runtime/Randomization/Parameters/NumericParameter.cs
  4. 2
      com.unity.perception/Runtime/Randomization/Parameters/Parameter.cs
  5. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/AnimationClipParameter.cs
  6. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/GameObjectParameter.cs
  7. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/MaterialParameter.cs
  8. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/StringParameter.cs
  9. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/Texture2DParameter.cs
  10. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/BooleanParameter.cs
  11. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorHsva.cs
  12. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorHsvaCategoricalParameter.cs
  13. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorHsvaParameter.cs
  14. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorRgbCategoricalParameter.cs
  15. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorRgbParameter.cs
  16. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/FloatParameter.cs
  17. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/IntegerParameter.cs
  18. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/Vector2Parameter.cs
  19. 3
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/Vector3Parameter.cs
  20. 2
      com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/Vector4Parameter.cs
  21. 2
      com.unity.perception/Runtime/Randomization/Randomizers/AddRandomizerMenuAttribute.cs
  22. 2
      com.unity.perception/Runtime/Randomization/Randomizers/Randomizer.cs
  23. 1
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Utilities/PoissonDiskSampling.cs
  24. 2
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTag.cs
  25. 2
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTagManager.cs
  26. 2
      com.unity.perception/Runtime/Randomization/Samplers/FloatRange.cs
  27. 2
      com.unity.perception/Runtime/Randomization/Samplers/ISampler.cs
  28. 2
      com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/AnimationCurveSampler.cs
  29. 2
      com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/ConstantSampler.cs
  30. 2
      com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/NormalSampler.cs
  31. 2
      com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/UniformSampler.cs
  32. 2
      com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs
  33. 2
      com.unity.perception/Runtime/Randomization/Scenarios/Scenario.cs
  34. 2
      com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs
  35. 2
      com.unity.perception/Runtime/Randomization/Scenarios/ScenarioConstants.cs
  36. 2
      com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenario.cs
  37. 2
      com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenarioConstants.cs

2
com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

/// <typeparam name="T">The sample type of the categorical parameter</typeparam>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public abstract class CategoricalParameter<T> : CategoricalParameterBase
{
[SerializeField] internal bool uniform = true;

2
com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameterBase.cs


using System;
using System.Collections.Generic;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public abstract class CategoricalParameterBase : Parameter
{
[SerializeField] internal List<float> probabilities = new List<float>();

2
com.unity.perception/Runtime/Randomization/Parameters/NumericParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

/// <typeparam name="T">The sample type of the parameter</typeparam>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public abstract class NumericParameter<T> : Parameter where T : struct
{
/// <summary>

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


using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

/// </summary>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public abstract class Parameter
{
[HideInInspector, SerializeField] internal bool collapsed;

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/AnimationClipParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class AnimationClipParameter : CategoricalParameter<AnimationClip> { }
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/GameObjectParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class GameObjectParameter : CategoricalParameter<GameObject> { }
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/MaterialParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class MaterialParameter : CategoricalParameter<Material> {}
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/StringParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class StringParameter : CategoricalParameter<string> {}
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/CategorialParameters/Texture2DParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class Texture2DParameter : CategoricalParameter<Texture2D> { }
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/BooleanParameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class BooleanParameter : NumericParameter<bool>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorHsva.cs


using System;
using Unity.Mathematics;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public struct ColorHsva
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorHsvaCategoricalParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class ColorHsvaCategoricalParameter : CategoricalParameter<ColorHsva> { }
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorHsvaParameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class ColorHsvaParameter : NumericParameter<Color>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorRgbCategoricalParameter.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class ColorRgbCategoricalParameter : CategoricalParameter<Color> { }
}

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/ColorParameters/ColorRgbParameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class ColorRgbParameter : NumericParameter<Color>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/FloatParameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class FloatParameter : NumericParameter<float>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/IntegerParameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class IntegerParameter : NumericParameter<int>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/Vector2Parameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class Vector2Parameter : NumericParameter<Vector2>
{
/// <summary>

3
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/Vector3Parameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{
/// <summary>

[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class Vector3Parameter : NumericParameter<Vector3>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Parameters/ParameterTypes/NumericParameters/Vector4Parameter.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Parameters
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Parameters")]
public class Vector4Parameter : NumericParameter<Vector4>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Randomizers/AddRandomizerMenuAttribute.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Randomizers
{

[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Randomizers")]
public class AddRandomizerMenuAttribute : Attribute
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Randomizers/Randomizer.cs


using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Parameters;
using UnityEngine.Perception.Randomization.Scenarios;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Randomizers
{

/// https://issuetracker.unity3d.com/issues/serializereference-non-serialized-initialized-fields-lose-their-values-when-entering-play-mode
/// </remark>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Randomizers")]
public abstract class Randomizer
{
bool m_PreviouslyEnabled;

1
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Utilities/PoissonDiskSampling.cs


/// <summary>
/// Utility for generating lists of poisson disk sampled points
/// </summary>
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRandomizers")]
public static class PoissonDiskSampling
{
const int k_DefaultSamplingResolution = 30;

2
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTag.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Randomizers
{

/// </summary>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Randomizers")]
public abstract class RandomizerTag : MonoBehaviour
{
RandomizerTagManager tagManager => RandomizerTagManager.singleton;

2
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTagManager.cs


using System;
using System.Collections.Generic;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Randomizers
{

[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Randomizers")]
public class RandomizerTagManager
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Samplers/FloatRange.cs


using System;
using UnityEngine.Scripting.APIUpdating;
using Assert = UnityEngine.Assertions.Assert;
namespace UnityEngine.Perception.Randomization.Samplers

/// </summary>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public struct FloatRange
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Samplers/ISampler.cs


using System;
using UnityEngine;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Samplers
{

[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public interface ISampler
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/AnimationCurveSampler.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Samplers
{

/// The Y values cannot however be negative.
/// </summary>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public class AnimationCurveSampler : ISampler
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/ConstantSampler.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Samplers
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public class ConstantSampler : ISampler
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/NormalSampler.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Samplers
{

/// </summary>
[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public class NormalSampler : ISampler
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/UniformSampler.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Samplers
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
public class UniformSampler : ISampler
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Scenarios
{

[AddComponentMenu("Perception/Scenarios/Fixed Length Scenario")]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Scenarios")]
public class FixedLengthScenario: UnitySimulationScenario<FixedLengthScenario.Constants>
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Scenarios/Scenario.cs


using UnityEngine.Perception.Randomization.Parameters;
using UnityEngine.Perception.Randomization.Randomizers;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Scenarios
{

/// <typeparam name="T">The type of scenario constants to serialize</typeparam>
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Scenarios")]
public abstract class Scenario<T> : ScenarioBase where T : ScenarioConstants, new()
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs


using UnityEngine.Perception.Randomization.Randomizers;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Perception.GroundTruth;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Scenarios
{

[DefaultExecutionOrder(-1)]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Scenarios")]
public abstract class ScenarioBase : MonoBehaviour
{
static ScenarioBase s_ActiveScenario;

2
com.unity.perception/Runtime/Randomization/Scenarios/ScenarioConstants.cs


using System;
using UnityEngine.Perception.Randomization.Samplers;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Scenarios
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Scenarios")]
public class ScenarioConstants
{
/// <summary>

2
com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenario.cs


using System;
using Unity.Simulation;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Scenarios
{

/// <typeparam name="T">The type of constants to serialize</typeparam>
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Scenarios")]
public abstract class UnitySimulationScenario<T> : Scenario<T> where T : UnitySimulationScenarioConstants, new()
{
/// <inheritdoc/>

2
com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenarioConstants.cs


using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Perception.Randomization.Scenarios
{

[Serializable]
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Scenarios")]
public class UnitySimulationScenarioConstants : ScenarioConstants
{
/// <summary>

正在加载...
取消
保存