Model.renamecollectorbyid#
- Model.renamecollectorbyid(entity, type)#
Renames a collector to its ID.
- Parameters:
entity (EntityFullType) – The type of collector being renamed.
type (hwString) – A prefix which will be inserted before the ID of the collector.
Example#
Rename all components by providing the prefix “_temp”#import hm import hm.entities as ent model = hm.Model() model.renamecollectorbyid(entity=ent.Component, type="_temp")