diff --git a/Source/Engine/Terrain/Terrain.h b/Source/Engine/Terrain/Terrain.h index d9ef89fb5..4aac9f46a 100644 --- a/Source/Engine/Terrain/Terrain.h +++ b/Source/Engine/Terrain/Terrain.h @@ -187,7 +187,7 @@ public: /// /// Gets the list with physical materials used to define the terrain collider physical properties - each for terrain layer (layer index matches index in this array). /// - API_PROPERTY(Attributes="EditorOrder(520), EditorDisplay(\"Collision\"), Collection(MinCount = 8, MaxCount = 8)") + API_PROPERTY(Attributes="EditorOrder(520), EditorDisplay(\"Collision\"), Collection(MinCount=8, MaxCount=8)") FORCE_INLINE const Array, FixedAllocation<8>>& GetPhysicalMaterials() const { return _physicalMaterials; @@ -199,6 +199,26 @@ public: API_PROPERTY() void SetPhysicalMaterials(const Array, FixedAllocation<8>>& value); + /// + /// Gets the physical material used to define the terrain collider physical properties. + /// [Deprecated on 16.02.2024, expires on 16.02.2026] + /// + API_PROPERTY(Attributes="HideInEditor, NoSerialize") + DEPRECATED FORCE_INLINE JsonAssetReference& GetPhysicalMaterial() + { + return _physicalMaterials[0]; + } + + /// + /// Sets the physical materials used to define the terrain collider physical properties. + /// + DEPRECATED API_PROPERTY() + void SetPhysicalMaterial(const JsonAssetReference& value) + { + for (auto& e : _physicalMaterials) + e = value; + } + /// /// Gets the terrain Level Of Detail count. ///