Using Nebula Icons in Starlight
For any Icon parameter in starlight, it always accepts the asset id of the image.
We can use the GetIcon function from the Library which return an asset id of the icon from our choice.
NebulaIcons:GetIcon(name <string>, source <string>)
As a quick example and test, let us set the icon to the View In AR icon from Material Icons.
Icon = NebulaIcons:GetIcon("view_in_ar", "Material")
If the script ran correctly, it should show the View In AR Icon.
Now we can set our Icons to any icon from any icon pack in the entire Nebula Icons collection.
local Button = Groupbox:CreateButton({
Name = "Button",
Icon = NebulaIcons:GetIcon('locate', 'Lucide'),
Callback = function()
end,
}, "MyButtonUsingNebulaIcons")
If you are using the Alpha 1 Release of Starlight, set the ImageSource property to
custom
To View The Icons, you can check the Icon Finder of each Icon Pack.