Skip to main content

register_user_texture

Function register_user_texture 

Source
pub fn register_user_texture(object: Object) -> Result<TextureId>
Expand description

Registers a Unity texture object for use in egui as a user texture.

Returns a egui::TextureId::User id that can be passed to egui’s Image widget via SizedTexture. The texture object is GC-pinned so it won’t be collected while registered.