-
-
Notifications
You must be signed in to change notification settings - Fork 2
Glossary: Events
Aviril edited this page Nov 29, 2024
·
24 revisions
✨Fired after library gets loaded and assets are downloaded.
⚠️ This network is destroyed instantly right after its fired, for latter usage refer
assetify.network:fetch("Assetify:onLoad", true):on(function()
print("Assetify successfully loaded")
end)
✨Fired after library & assets get unloaded.
assetify.network:fetch("Assetify:onUnload", true):on(function()
print("Assetify successfully unloaded")
end)
✨Fired after library's modules are downloaded and loaded.
⚠️ This network is destroyed instantly right after its fired, for latter usage refer
assetify.network:fetch("Assetify:onModuleLoad", true):on(function()
print("Assetify's modules successfully loaded")
end)
✨Fired after hooked resource's loaded.
assetify.network:fetch("Assetify:onResourceLoad", true):on(function(resourceName, resourceSource)
print("Resource: "..resourceName.." successfully loaded")
end)
✨Fired after hooked resource's flushed.
assetify.network:fetch("Assetify:onResourceFlush", true):on(function(resourceName, resourceSource)
print("Resource: "..resourceName.." successfully flushed")
end)
✨Fired after hooked resource's unloaded.
assetify.network:fetch("Assetify:onResourceUnload ", true):on(function(resourceName, resourceSource)
print("Resource: "..resourceName.." successfully unloaded")
end)
✨Fired when asset is being loaded.
assetify.network:fetch("Assetify:onAssetLoad", true):on(function(assetType, assetName)
print("Asset Loaded: "..assetName.."("..assetType..")")
end)
✨Fired when asset is being unloaded.
assetify.network:fetch("Assetify:onAssetUnload", true):on(function(assetType, assetName)
print("Asset Unloaded: "..assetName.."("..assetType..")")
end)
✨Fired when global data changes.
assetify.network:fetch("Assetify:onGlobalDataChange", true):on(function(data, oldValue, newValue)
print("Global Data Changed: "..data.." : "..tostring(oldValue).." : "..tostring(newValue))
end)
✨Fired when entity data changes.
assetify.network:fetch("Assetify:onEntityDataChange", true):on(function(element, data, oldValue, newValue)
print("Entity Data Changed: "..tostring(element).." : "..data.." : "..tostring(oldValue).." : "..tostring(newValue))
end)