{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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user