
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@like465420404/cloud-render-sdk
Advanced tools
基于 WebRTC 的云渲染 SDK,用于 Unity 应用的远程渲染和实时交互。
npm install cloud-render-sdk
import { CloudEditorSDK } from 'cloud-render-sdk'
// 初始化SDK
const sdk = new CloudEditorSDK({
tcgMount: 'tcg-container', // TCG应用挂载DOM ID
tcgAppId: 12345, // TCG应用ID
tcgProjectId: 'project-id', // TCG项目ID
wsUrl: 'wss://example.com/ws', // WebSocket服务器地址
userId: 'user-id', // 用户ID
serviceHost: 'https://example.com/api', // StartProject的地址
localDebugging: false, // 是否本地调试模式
})
// 监听Unity渲染就绪事件
sdk.onUnityRenderReady = (content) => {
console.log('Unity渲染就绪', content)
}
// 监听模板变换更新事件
sdk.onTemplateTransformUpdate = (content) => {
console.log('模板变换更新', content)
}
// 销毁SDK实例
async function cleanUp() {
await sdk.destroy()
}
constructor(options: SDKOptions)
interface SDKOptions {
tcgMount: string // TCG应用挂载DOMID
tcgAppId: number // TCG应用ID
tcgProjectId: string // TCG项目ID
wsUrl: string // WebSocket服务器地址
userId: string // 用户ID
serviceHost: string // StartProject的地址
localDebugging?: boolean // 是否本地调试模式
wsTopicName?: string // 本地调试模式时有效
}
onUnityRenderReady: Unity 渲染就绪时触发onTemplateTransformUpdate: 模板变换更新时触发onTemplateSelectToggle: 模板选择切换时触发onError: 发生错误时触发onQueueStatus: 排队状态更新时触发TemplateTransformUpdate(content): 更新模板变换EditorInitializeStart(content): 开始编辑器初始化TemplateAdd(content): 添加模板TemplateDelete(content): 删除模板TemplateUpdate(content): 更新模板TemplateHide(content): 隐藏模板TemplateShow(content): 显示模板TemplateSelectToggle(content): 切换模板选择状态getTemplateInfoByUuid(content): 通过 UUID 获取模板信息getEditorAllData(content): 获取编辑器所有数据updateRemoteSolution(): 更新远程解决方案getRemoteSolution(): 获取远程解决方案destroy(): 销毁 SDK 实例https://alidocs.dingtalk.com/i/nodes/R1zknDm0WR3AklNXfZm9GwozVBQEx5rG?utm_scene=person_space
FAQs
云渲染SDK - 提供Unity WebRTC通信管理能力
We found that @like465420404/cloud-render-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.