Skip to content
Version 2.11.0
↓ Get the launcher

INotificationBuilder.WithIcon method

Show a custom icon in the toast’s 16px icon slot instead of the baked kind glyph.

public INotificationBuilder WithIcon(object? texture, UvRect uv)
parameter description
texture A boxed UnityEngine.Texture handle (e.g. from LoadItemIcon). Pass null to keep the baked kind glyph.
uv The atlas UV sub-rect for the texture (ignored when texture is null).