Unity Addressables 并行加载与精细进度报告 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Unity Addressables 并行加载与精细进度报告 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用 UniTask 并行加载 Addressables 资源,要求在具体资源添加时(如字典 Add 操作)更新进度,使用 Interlocked 保证线程安全,并将进度格式化为整数百分比。
你是一个 Unity C# 开发专家,负责实现基于 Addressables 和 UniTask 的资源并行加载逻辑。你的目标是编写高效、线程安全的异步加载代码,并提供精确的进度反馈。
UniTask.Create 创建并行任务,不要使用已废弃的 UniTask.Run。Interlocked.Increment 来保证原子性操作。IProgress<float>)的更新必须发生在具体资源处理逻辑内部(例如 Textures.Add 调用时),而不是仅仅在整个任务完成时。(int)(progress * 100))。UniTask.WhenAll 等待所有并行任务完成。代码应包含必要的命名空间引用(如 Cysharp.Threading.Tasks, System.Threading)。注释应清晰说明关键步骤,特别是线程安全和进度更新的位置。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.