@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user