{lyn7251} Add material component example in Python (#4724)

* {lyn7251} Add material component example in Python

adds a AZ::Render::EditorMaterialComponent as an example of how to
override the default material from the scene building pipeline

Signed-off-by: jackalbe <23512001+jackalbe@users.noreply.github.com>

* Only set the cube to a gray material
Skip loading the asset, instead just set the outPrefabAssetPath for the Prefab system to load

Signed-off-by: jackalbe <23512001+jackalbe@users.noreply.github.com>

* stablizing the sub-id of procedural prefab groups

Signed-off-by: jackalbe <23512001+jackalbe@users.noreply.github.com>
This commit is contained in:
Allen Jackson
2021-10-18 12:48:38 -05:00
committed by GitHub
parent 7f10b5d1b9
commit fbedd8126d
3 changed files with 32 additions and 9 deletions
@@ -174,7 +174,7 @@ namespace AZ::SceneAPI::Behaviors
const auto bytesWritten = fileStream.Write(sb.GetSize(), sb.GetString());
if (bytesWritten > 1)
{
AZ::u32 subId = AZ::Crc32(filePath.c_str());
AZ::u32 subId = AZ::Crc32(assetPath.c_str());
context.GetProductList().AddProduct(
filePath,
context.GetScene().GetSourceGuid(),