I created a copy of the Material class under a different name, and it works. However, it stopped being saved in BAM. I get this message.
:util(warning): Objects of type MaterialPBR cannot be read; bam file is invalid.
static void init_type() {
TypedWritableReferenceCount::init_type();
register_type(_type_handle, "MaterialPBR",
TypedWritableReferenceCount::get_class_type());
}
If this is returned to the old name Material
, then the message does not appear. Where else do I need to make edits to make it work?