pub fn create_entity_frame(
tx: &mut ReadWriteTransaction<'_>,
parent_uid: &str,
uid: &str,
class: &Class,
) -> Result<()>Expand description
Creates a new entity frame and subscribes it to the classes it collects.
§Arguments
tx- A mutable read/write transaction to load and save frames.parent_uid- The uid of the parent entity.uid- The uid of the entity for which to create a frame.class- The class name of the entity for which to create a frame.
§Returns
Result<()>- Indicates success or failure of the frame creation process.