diff --git a/Source/Editor/CustomEditors/Elements/DoubleValueElement.cs b/Source/Editor/CustomEditors/Elements/DoubleValueElement.cs
index cf16a1194..eb0bdd823 100644
--- a/Source/Editor/CustomEditors/Elements/DoubleValueElement.cs
+++ b/Source/Editor/CustomEditors/Elements/DoubleValueElement.cs
@@ -22,7 +22,7 @@ namespace FlaxEditor.CustomEditors.Elements
///
/// [Deprecated on 26.05.2022, expires on 26.05.2024]
///
- [System.Obsolete("Deprecated in 1.4, use ValueBox instead")]
+ [System.Obsolete("Use ValueBox instead")]
public DoubleValueBox DoubleValue => ValueBox;
///
diff --git a/Source/Editor/CustomEditors/Elements/FloatValueElement.cs b/Source/Editor/CustomEditors/Elements/FloatValueElement.cs
index aabdb79e4..32a8b42c3 100644
--- a/Source/Editor/CustomEditors/Elements/FloatValueElement.cs
+++ b/Source/Editor/CustomEditors/Elements/FloatValueElement.cs
@@ -22,7 +22,7 @@ namespace FlaxEditor.CustomEditors.Elements
///
/// [Deprecated on 26.05.2022, expires on 26.05.2024]
///
- [System.Obsolete("Deprecated in 1.4, use ValueBox instead")]
+ [System.Obsolete("Use ValueBox instead")]
public FloatValueBox FloatValue => ValueBox;
///
diff --git a/Source/Editor/Editor.cs b/Source/Editor/Editor.cs
index 6a1e804b8..e64be977b 100644
--- a/Source/Editor/Editor.cs
+++ b/Source/Editor/Editor.cs
@@ -850,7 +850,7 @@ namespace FlaxEditor
/// New asset types allowed to create.
/// [Deprecated in v1.8]
///
- [Obsolete("Use CreateAsset with named tag.")]
+ [Obsolete("Use CreateAsset with named tag instead")]
public enum NewAssetType
{
///
@@ -1031,7 +1031,7 @@ namespace FlaxEditor
///
/// New asset type.
/// Output asset path.
- [Obsolete("Use CreateAsset with named tag.")]
+ [Obsolete("Use CreateAsset with named tag instead")]
public static bool CreateAsset(NewAssetType type, string outputPath)
{
// [Deprecated on 18.02.2024, expires on 18.02.2025]
diff --git a/Source/Engine/Core/Math/BoundingBox.cs b/Source/Engine/Core/Math/BoundingBox.cs
index d6c3a54b1..7f871a8a1 100644
--- a/Source/Engine/Core/Math/BoundingBox.cs
+++ b/Source/Engine/Core/Math/BoundingBox.cs
@@ -171,7 +171,7 @@ namespace FlaxEngine
/// The ray to test.
/// When the method completes, contains the distance of the intersection, or 0 if there was no intersection.
/// Whether the two objects intersected.
- [Obsolete("Deprecated in v1.4")]
+ [Obsolete("Use Intersects with 'out Real distance' parameter instead")]
public bool Intersects(ref Ray ray, out float distance)
{
var result = CollisionsHelper.RayIntersectsBox(ref ray, ref this, out Real dst);
diff --git a/Source/Engine/Core/Math/CollisionsHelper.cs b/Source/Engine/Core/Math/CollisionsHelper.cs
index d8393a507..e51aaf7f3 100644
--- a/Source/Engine/Core/Math/CollisionsHelper.cs
+++ b/Source/Engine/Core/Math/CollisionsHelper.cs
@@ -659,7 +659,7 @@ namespace FlaxEngine
/// The plane to test.
/// When the method completes, contains the distance of the intersection, or 0 if there was no intersection.
/// Whether the two objects intersect.
- [Obsolete("Deprecated in 1.4")]
+ [Obsolete("Use RayIntersectsPlane with 'out Real distance' parameter instead")]
public static bool RayIntersectsPlane(ref Ray ray, ref Plane plane, out float distance)
{
//Source: Real-Time Collision Detection by Christer Ericson
diff --git a/Source/Engine/Core/Math/Mathd.cs b/Source/Engine/Core/Math/Mathd.cs
index 98f215cdf..556300451 100644
--- a/Source/Engine/Core/Math/Mathd.cs
+++ b/Source/Engine/Core/Math/Mathd.cs
@@ -645,6 +645,7 @@ namespace FlaxEngine
///
/// Maps the specified value from the given range into another.
+ /// [Deprecated on 17.04.2023, expires on 17.04.2024]
///
/// The value to map from range [fromMin; fromMax].
/// The source range minimum value.
@@ -652,8 +653,7 @@ namespace FlaxEngine
/// The destination range minimum value.
/// The destination range maximum value.
/// The mapped value in range [toMin; toMax].
- // [Deprecated on 17.04.2023, expires on 17.04.2024]
- [Obsolete("Please use Remap to upkeep the API consistency")]
+ [Obsolete("Use Remap instead")]
public static double Map(double value, double fromMin, double fromMax, double toMin, double toMax)
{
double t = (value - fromMin) / (fromMax - fromMin);
diff --git a/Source/Engine/Core/Math/Mathf.cs b/Source/Engine/Core/Math/Mathf.cs
index 2ea80cbb3..31f1e4569 100644
--- a/Source/Engine/Core/Math/Mathf.cs
+++ b/Source/Engine/Core/Math/Mathf.cs
@@ -808,6 +808,7 @@ namespace FlaxEngine
///
/// Maps the specified value from the given range into another.
+ /// [Deprecated on 17.04.2023, expires on 17.04.2024]
///
/// The value to map from range [fromMin; fromMax].
/// The source range minimum value.
@@ -815,8 +816,7 @@ namespace FlaxEngine
/// The destination range minimum value.
/// The destination range maximum value.
/// The mapped value in range [toMin; toMax].
- // [Deprecated on 17.04.2023, expires on 17.04.2024]
- [Obsolete("Please use Remap to upkeep the API consistency")]
+ [Obsolete("Use Remap instead")]
public static float Map(float value, float fromMin, float fromMax, float toMin, float toMax)
{
float t = (value - fromMin) / (fromMax - fromMin);
diff --git a/Source/Engine/Core/Math/Matrix.cs b/Source/Engine/Core/Math/Matrix.cs
index 34e6b4bec..c065379d3 100644
--- a/Source/Engine/Core/Math/Matrix.cs
+++ b/Source/Engine/Core/Math/Matrix.cs
@@ -825,7 +825,7 @@ namespace FlaxEngine
/// When the method completes, contains the rotation component of the decomposed matrix.
/// When the method completes, contains the translation component of the decomposed matrix.
/// This method is designed to decompose an SRT transformation matrix only.
- [Obsolete("Deprecated in v1.8")]
+ [Obsolete("Use Decompose with 'out Matrix3x3 rotation' parameter instead")]
public void Decompose(out Float3 scale, out Matrix rotation, out Float3 translation)
{
Decompose(out scale, out Matrix3x3 r, out translation);
diff --git a/Source/Engine/Core/Math/Ray.cs b/Source/Engine/Core/Math/Ray.cs
index 3ed5e8257..268bfddcf 100644
--- a/Source/Engine/Core/Math/Ray.cs
+++ b/Source/Engine/Core/Math/Ray.cs
@@ -149,7 +149,7 @@ namespace FlaxEngine
/// The plane to test.
/// When the method completes, contains the distance of the intersection, or 0 if there was no intersection.
/// Whether the two objects intersected.
- [Obsolete("Deprecated in 1.4")]
+ [Obsolete("Use Intersects with 'out Real distance' parameter instead")]
public bool Intersects(ref Plane plane, out float distance)
{
return CollisionsHelper.RayIntersectsPlane(ref this, ref plane, out distance);
@@ -202,7 +202,7 @@ namespace FlaxEngine
/// The third vertex of the triangle to test.
/// When the method completes, contains the distance of the intersection, or 0 if there was no intersection.
/// Whether the two objects intersected.
- [Obsolete("Deprecated in 1.4")]
+ [Obsolete("Use Intersects with 'out Real distance' parameter instead")]
public bool Intersects(ref Vector3 vertex1, ref Vector3 vertex2, ref Vector3 vertex3, out float distance)
{
var result = CollisionsHelper.RayIntersectsTriangle(ref this, ref vertex1, ref vertex2, ref vertex3, out Real dst);
@@ -305,7 +305,7 @@ namespace FlaxEngine
/// The sphere to test.
/// When the method completes, contains the distance of the intersection, or 0 if there was no intersection.
/// Whether the two objects intersected.
- [Obsolete("Deprecated in 1.4")]
+ [Obsolete("Use Intersects with 'out Real distance' parameter instead")]
public bool Intersects(ref BoundingSphere sphere, out float distance)
{
var result = CollisionsHelper.RayIntersectsSphere(ref this, ref sphere, out Real dst);
diff --git a/Source/Engine/Engine/InputEvent.cs b/Source/Engine/Engine/InputEvent.cs
index e5653631f..287e044f1 100644
--- a/Source/Engine/Engine/InputEvent.cs
+++ b/Source/Engine/Engine/InputEvent.cs
@@ -28,7 +28,7 @@ namespace FlaxEngine
///
/// Occurs when event is triggered (e.g. user pressed a key). Called before scripts update.
///
- [System.Obsolete("Depreciated in 1.7, use Pressed Action.")]
+ [System.Obsolete("Use Pressed instead")]
public event Action Triggered;
///
diff --git a/Source/Engine/Graphics/Mesh.cs b/Source/Engine/Graphics/Mesh.cs
index 384bb5d4f..42604c872 100644
--- a/Source/Engine/Graphics/Mesh.cs
+++ b/Source/Engine/Graphics/Mesh.cs
@@ -339,7 +339,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
/// The vertex colors (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(Vector3[] vertices, int[] triangles, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null, Color32[] colors = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
@@ -357,7 +357,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
/// The vertex colors (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(List vertices, List triangles, List normals = null, List tangents = null, List uv = null, List colors = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
@@ -375,7 +375,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
/// The vertex colors (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(Vector3[] vertices, uint[] triangles, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null, Color32[] colors = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
@@ -393,7 +393,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
/// The vertex colors (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(List vertices, List triangles, List normals = null, List tangents = null, List uv = null, List colors = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
@@ -411,7 +411,7 @@ namespace FlaxEngine
/// The tangent vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
/// The vertex colors (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(Vector3[] vertices, ushort[] triangles, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null, Color32[] colors = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
@@ -429,7 +429,7 @@ namespace FlaxEngine
/// The tangent vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
/// The vertex colors (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(List vertices, List triangles, List normals = null, List tangents = null, List uv = null, List colors = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
diff --git a/Source/Engine/Graphics/SkinnedMesh.cs b/Source/Engine/Graphics/SkinnedMesh.cs
index 6c9594bed..0381622b2 100644
--- a/Source/Engine/Graphics/SkinnedMesh.cs
+++ b/Source/Engine/Graphics/SkinnedMesh.cs
@@ -216,7 +216,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex).
/// The normal vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(Vector3[] vertices, int[] triangles, Int4[] blendIndices, Vector4[] blendWeights, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, blendIndices, Utils.ConvertCollection(blendWeights), Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv));
@@ -235,7 +235,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex).
/// The normal vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(Vector3[] vertices, uint[] triangles, Int4[] blendIndices, Vector4[] blendWeights, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, blendIndices, Utils.ConvertCollection(blendWeights), Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv));
@@ -254,7 +254,7 @@ namespace FlaxEngine
/// The normal vectors (per vertex).
/// The tangent vectors (per vertex). Use null to compute them from normal vectors.
/// The texture coordinates (per vertex).
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
public void UpdateMesh(Vector3[] vertices, ushort[] triangles, Int4[] blendIndices, Vector4[] blendWeights, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null)
{
UpdateMesh(Utils.ConvertCollection(vertices), triangles, blendIndices, Utils.ConvertCollection(blendWeights), Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv));
diff --git a/Source/Engine/Physics/CollisionData.cs b/Source/Engine/Physics/CollisionData.cs
index 3eb5543be..c17e452e4 100644
--- a/Source/Engine/Physics/CollisionData.cs
+++ b/Source/Engine/Physics/CollisionData.cs
@@ -19,7 +19,7 @@ namespace FlaxEngine
/// The convex mesh generation flags.
/// The convex mesh vertex limit. Use values in range [8;255]
/// True if failed, otherwise false.
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use CookCollision with Float3 and Float2 parameters instead")]
public bool CookCollision(CollisionDataType type, Vector3[] vertices, uint[] triangles, ConvexMeshGenerationFlags convexFlags = ConvexMeshGenerationFlags.None, int convexVertexLimit = 255)
{
if (vertices == null)
@@ -43,7 +43,7 @@ namespace FlaxEngine
/// The convex mesh generation flags.
/// The convex mesh vertex limit. Use values in range [8;255]
/// True if failed, otherwise false.
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use CookCollision with Float3 and Float2 parameters instead")]
public bool CookCollision(CollisionDataType type, Vector3[] vertices, int[] triangles, ConvexMeshGenerationFlags convexFlags = ConvexMeshGenerationFlags.None, int convexVertexLimit = 255)
{
if (vertices == null)
@@ -60,7 +60,7 @@ namespace FlaxEngine
///
/// The output vertex buffer.
/// The output index buffer.
- [Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
+ [Obsolete("Use ExtractGeometry with Float3 and Float2 parameters instead")]
public void ExtractGeometry(out Vector3[] vertexBuffer, out int[] indexBuffer)
{
ExtractGeometry(out Float3[] tmp, out indexBuffer);
diff --git a/Source/Engine/Utilities/Utils.cs b/Source/Engine/Utilities/Utils.cs
index 0767ab8f4..890bbcfb9 100644
--- a/Source/Engine/Utilities/Utils.cs
+++ b/Source/Engine/Utilities/Utils.cs
@@ -23,7 +23,7 @@ namespace FlaxEngine
/// The source location.
/// The destination location.
/// The length (amount of bytes to copy).
- [Obsolete("Use MemoryCopy with long length and source/destination swapped to match C++ API.")]
+ [Obsolete("Use MemoryCopy with long length and source/destination parameters swapped instead")]
public static void MemoryCopy(IntPtr source, IntPtr destination, int length)
{
// [Deprecated on 30.05.2021, expires on 30.05.2022]