mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 01:09:34 -05:00
20 lines
443 B
Plaintext
20 lines
443 B
Plaintext
local icons = asset.syncedResource({
|
|
Name = "Icons",
|
|
Type = "HttpSynchronization",
|
|
Identifier = "icons",
|
|
Version = 1
|
|
})
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addScreenSpaceRenderable({
|
|
Identifier = "target-marker",
|
|
Name = "Target Marker",
|
|
Type = "ScreenSpaceImageLocal",
|
|
TexturePath = icons .. '/target.png'
|
|
})
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeScreenSpaceRenderable('target-marker');
|
|
end)
|