Add deprecated property to fix compile in old projects

42b4443e14
This commit is contained in:
Wojtek Figat
2024-09-12 12:40:13 +02:00
parent 2d61e329cb
commit 31bce25c37

View File

@@ -199,6 +199,26 @@ public:
API_PROPERTY() API_PROPERTY()
void SetPhysicalMaterials(const Array<JsonAssetReference<PhysicalMaterial>, FixedAllocation<8>>& value); void SetPhysicalMaterials(const Array<JsonAssetReference<PhysicalMaterial>, FixedAllocation<8>>& value);
/// <summary>
/// Gets the physical material used to define the terrain collider physical properties.
/// [Deprecated on 16.02.2024, expires on 16.02.2026]
/// </summary>
API_PROPERTY(Attributes="HideInEditor, NoSerialize")
DEPRECATED FORCE_INLINE JsonAssetReference<PhysicalMaterial>& GetPhysicalMaterial()
{
return _physicalMaterials[0];
}
/// <summary>
/// Sets the physical materials used to define the terrain collider physical properties.
/// </summary>
DEPRECATED API_PROPERTY()
void SetPhysicalMaterial(const JsonAssetReference<PhysicalMaterial>& value)
{
for (auto& e : _physicalMaterials)
e = value;
}
/// <summary> /// <summary>
/// Gets the terrain Level Of Detail count. /// Gets the terrain Level Of Detail count.
/// </summary> /// </summary>