downloadUgc
downloadUgc(
handle,priority):Promise<UgcDownloadResult>
Downloads a user-generated content (UGC) file, such as a Workshop file, by its handle. Needs init(). This starts network transfers.
Resolves with the file’s details once the download completes; runCallbacks(), which init() already calls, drives the result.
Rejects when handle is not a non-negative BigInt below 2^64, or when Steam reports an error. There is no timeout: if Steam never answers, the Promise stays pending and the outcome is unknown.
Parameters
Section titled “Parameters”handle
Section titled “handle”bigint
The UGC handle as a BigInt.
priority
Section titled “priority”number
0 downloads at once. A higher value waits until downloads with lower values finish; equal values download together (from the SDK header).
Returns
Section titled “Returns”Promise<UgcDownloadResult>
the file’s handle, app id, size, file name and owner.
Turn ideas into shipped software.
HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.
- Smart
- OpenSpec workflows turn intent into a path from proposal to shipped change.
- Efficient
- Multi-agent execution runs research, build, and review in parallel.
- Fun
- Rich UI interactions make planning, agent work, and projects easier to follow.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
