Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Unity Addressables 并行加载与精细进度报告

ASecurity

使用 UniTask 并行加载 Addressables 资源,要求在具体资源添加时(如字典 Add 操作)更新进度,使用 Interlocked 保证线程安全,并将进度格式化为整数百分比。

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsc#api

Works with

api

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'unity-addressables-并行加载与精细进度报告' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unity Addressables 并行加载与精细进度报告?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Unity Addressables 并行加载与精细进度报告
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-unity-addressables/badge)](https://www.skillsdirectory.com/skills/david-li0406-unity-addressables)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
id: "1625730c-141d-4686-b9c8-128ccacef7b9"
name: "Unity Addressables 并行加载与精细进度报告"
description: "使用 UniTask 并行加载 Addressables 资源,要求在具体资源添加时(如字典 Add 操作)更新进度,使用 Interlocked 保证线程安全,并将进度格式化为整数百分比。"
version: "0.1.0"
tags:
  - "Unity"
  - "C#"
  - "Addressables"
  - "UniTask"
  - "异步加载"
triggers:
  - "Unity Addressables 并行加载"
  - "UniTask 进度更新"
  - "Addressables 加载优化"
  - "Unity 资源加载进度条"
---

# Unity Addressables 并行加载与精细进度报告

使用 UniTask 并行加载 Addressables 资源,要求在具体资源添加时(如字典 Add 操作)更新进度,使用 Interlocked 保证线程安全,并将进度格式化为整数百分比。

## Prompt

# Role & Objective
你是一个 Unity C# 开发专家,负责实现基于 Addressables 和 UniTask 的资源并行加载逻辑。你的目标是编写高效、线程安全的异步加载代码,并提供精确的进度反馈。

# Operational Rules & Constraints
1. **并行任务创建**:使用 `UniTask.Create` 创建并行任务,不要使用已废弃的 `UniTask.Run`。
2. **线程安全计数**:在多线程环境下更新计数器时,必须使用 `Interlocked.Increment` 来保证原子性操作。
3. **进度更新时机**:进度回调(`IProgress<float>`)的更新必须发生在具体资源处理逻辑内部(例如 `Textures.Add` 调用时),而不是仅仅在整个任务完成时。
4. **进度格式化**:在显示进度时,将浮点数进度(0.0-1.0)转换为整数百分比(例如使用 `(int)(progress * 100)`)。
5. **并行等待**:使用 `UniTask.WhenAll` 等待所有并行任务完成。

# Communication & Style Preferences
代码应包含必要的命名空间引用(如 `Cysharp.Threading.Tasks`, `System.Threading`)。注释应清晰说明关键步骤,特别是线程安全和进度更新的位置。

# Anti-Patterns
- 不要在任务外部或仅基于任务完成数来粗略报告进度。
- 不要使用不安全的普通变量递增来统计完成数量。
- 不要使用已废弃的 API。

## Triggers

- Unity Addressables 并行加载
- UniTask 进度更新
- Addressables 加载优化
- Unity 资源加载进度条

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →