查看: 1237|回复: 2

[有事请教] 缓存插件请教

[复制链接]
梦石
0
星屑
5638
在线时间
357 小时
注册时间
2021-2-9
回帖
61
发表于 2024-6-8 13:52:10 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
希望那位大佬能帮忙讲下这个插件怎么使用,自己看了半天,好像没有脚本和插件指令(应该是),好像只是在插件里设置那个文件夹里的图片或音频需要缓存就可以了。
希望那位大佬帮忙看看!非常感谢!

001.png
插件下载:↓
Aetherflow_PreloadEverything.7z (5.35 KB, 下载次数: 4)
梦石
0
星屑
1333
在线时间
471 小时
注册时间
2012-4-8
回帖
314
发表于 2024-6-8 19:34:01 | 显示全部楼层
本帖最后由 505681468 于 2024-6-8 19:50 编辑

[pre lang="javascript"]/*
* ---------------------------------------------------------------------------------
* Containers
* ---------------------------------------------------------------------------------
* For those users who are more hands on, the caching system has a type of object
* known as a "Container". Think of this as a group of objects, that can all be cached
* together and then can all be purged together at the same time, for easy cleanup and
* management. These are not the same as containers you setup in the plugin parameters.
* These containers are only accessed and used via code.
*
* Various function exists to help with the ease and usage of containers. They are
* all well documented throughout the plugin but a brief overview of them is as follows:
*
* ImageManager/AudioManager.addContainer("containerName"): Adds a container to the
* specified resource cache for that type.
*
* ImageManager/AudioManager.addContainerItem("containerName", "itemKey"): Adds an item
* to the container. NOTE: It only adds a key to look up the item in the cache for purging,
* it does not preload or load an item for you, you will need to do that prior to adding it
* to a container.
*
* ImageManager/AudioManager.releaseContainer("containerName"): Releases all objects
* within the specified container from the cache.
*
* ImageManager/AudioManager.releaseContainerItem("containerName", "itemKey"): Releases
* the specified item from the specified container if it exists, freeing it from the
* cache.
*/[/pre]

ImageManager.addContainer("containerName")
ImageManager.addContainerItem("containerName", "itemKey")

是直接调用代码的行为,不建议新手使用
pokemon 和 digimon 正在路上
回复

使用道具 举报

梦石
0
星屑
5638
在线时间
357 小时
注册时间
2021-2-9
回帖
61
 楼主| 发表于 2024-6-8 21:01:57 | 显示全部楼层
505681468 发表于 2024-6-8 19:34
/*
* ---------------------------------------------------------------------------------
* Container ...

感谢大佬回答!不过感觉这个插件应该挺有用的···哈哈···
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部