LYN-7376 test_TerrainHeightGradientList_AddRemoveGradients

Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com>
This commit is contained in:
sphrose
2021-11-30 16:46:17 +00:00
parent 6908a3e945
commit 786a72cf63
8 changed files with 254 additions and 2 deletions
@@ -54,6 +54,17 @@ namespace Terrain
->DataElement(AZ::Edit::UIHandlers::Default, &TerrainLayerSpawnerConfig::m_useGroundPlane, "Use Ground Plane", "Determines whether or not to provide a default ground plane")
;
}
if (auto behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context))
{
behaviorContext->Class<TerrainLayerSpawnerConfig>()
->Attribute(AZ::Script::Attributes::Category, "Terrain")
->Constructor()
->Property("layer", BehaviorValueProperty(&TerrainLayerSpawnerConfig::m_layer))
->Property("priority", BehaviorValueProperty(&TerrainLayerSpawnerConfig::m_priority))
->Property("useGroundPlane", BehaviorValueProperty(&TerrainLayerSpawnerConfig::m_useGroundPlane))
->Method("GetSelectableLayers", &TerrainLayerSpawnerConfig::GetSelectableLayers);
}
}
}