Loading...
Loading...
Compare original and translation side by side
Runtime constraint: Decentraland runs in a QuickJS sandbox. No Node.js APIs (,fs,http,path). Useprocess+executeTask()for async work.fetch()
运行时约束: Decentraland 运行在 QuickJS sandbox 中。不可使用 Node.js APIs(、fs、http、path)。异步工作请使用process+executeTask()。fetch()
Good: "Should I download this tree model into your scene assets?" Bad: "Run?"curl https://… -o assets/Models/tree.glb
好:“是否需要把这个树木模型下载到你的场景资源中?” 差:“运行?”curl https://… -o assets/Models/tree.glb
scene.parcels"To fit the scene you described, I'd need to expand from 1 parcel (16×16 m) to a 2×1 layout (32×16 m). This changes the coordinate bounds for every entity. Should I go ahead?"
scene.parcels“为了适配你描述的场景,我需要将其从 1 个 parcel(16×16 m)扩展为 2×1 布局(32×16 m)。这会改变所有实体的坐标边界。是否继续?”
"I'd like to download a [description] model from [source] and add it to your scene. Should I go ahead?"
AudioStreamVideoPlayer"I'd set up a video stream from [source]. Is that the one you want to use?"
“我想从 [来源] 下载一个 [描述] 模型,并将其添加到你的场景中。是否继续?”
AudioStreamVideoPlayer“我想使用来自 [来源] 的视频流进行设置。是否就是你希望使用的内容?”
isServer()registerMessages()StorageEnvVar@dcl/sdk@auth-server@dcl/sdk@auth-servermultiplayer-sync"To handle multiplayer this way I'd need to add the Multiplayer Server — that requires switching to theSDK branch instead of the standard one. Is that what you're after, or would simpler peer-to-peer sync work for your use case?"@dcl/sdk@auth-server
isServer()registerMessages()StorageEnvVar@dcl/sdk@auth-server@dcl/sdk@auth-servermultiplayer-sync“如果采用这种方式处理多人游戏,我需要添加 Multiplayer Server——这要求从标准分支切换到SDK 分支。你需要的是这种方案,还是更简单的点对点同步更适合你的使用场景?”@dcl/sdk@auth-server
assets/scene/main.compositeengine.addEntity()src/index.tsgetEntityOrNullByName('name')getEntitiesByTag('tag')assets/scene/main.compositeengine.addEntity()src/index.tsgetEntityOrNullByName('name')getEntitiesByTag('tag')assets/scene/main.compositeinspector::Nodesinspector::Nodes{baseDir}/../composites/composite-reference.mdmain.compositeassets/scene/main.compositeinspector::Nodesinspector::Nodes{baseDir}/../composites/composite-reference.mdmain.composite--skill '*'--skill '*'create-scenescene.jsoncreate-scenescene.jsonadd-3d-models.glb.gltfGltfContaineradd-3d-modelsGltfContainer.glb.gltfanimations-tweensAnimatorTweenTweenSequenceanimations-tweensAnimatorTweenTweenSequenceadvanced-renderingTextShapeBillboardVisibilityComponentadvanced-renderingTextShapeBillboardVisibilityComponentlighting-environmentSkyboxTimelighting-environmentSkyboxTimeparticle-systemParticleSystemparticle-systemParticleSystemadd-interactivitypointerEventsSystemadvanced-inputadd-interactivitypointerEventsSystemadvanced-inputadvanced-inputinputSystemInputModifierPointerLockPrimaryPointerInfoadvanced-inputinputSystemInputModifierPointerLockPrimaryPointerInfoplayer-avatarAvatarAttachAvatarModifierAreaplayer-avatarAvatarAttachAvatarModifierAreanpcsAvatarShapenpcsAvatarShapeplayer-physicsplayer-physicscamera-controlCameraModeAreaVirtualCameracamera-controlCameraModeAreaVirtualCamerabuild-uibuild-uiaudio-videoAudioSourceAudioStreamVideoPlayeraudio-videoAudioSourceAudioStreamVideoPlayeraudio-analysisAudioAnalysisAudioSourceAudioStreamVideoPlayeraudio-analysisAudioAnalysisAudioSourceAudioStreamVideoPlayernft-blockchainNftShapenft-blockchainNftShapemultiplayer-syncsyncEntityMessageBusmultiplayer-syncsyncEntityMessageBusauthoritative-serverisServer()registerMessages()StorageEnvVar@dcl/sdk@auth-serverauthoritative-serverisServer()registerMessages()StorageEnvVar@dcl/sdk@auth-serverscript-components.ts@actionscript-components.ts@actionscene-runtimeexecuteTaskfetchsignedFetchscene-runtimeexecuteTaskfetchsignedFetchoptimize-sceneoptimize-scenegame-designgame-designdeploy-scenedcl deploydeploy-worldsworldConfigurationdeploy-scenedcl deploydeploy-worldsworldConfigurationmigrate-sdk6-to-sdk7decentraland-ecsnew Entity()engine.addEntity()GLTFShapeGltfContainerOnPointerDownpointerEventsSystemISystemInput.instanceinputSystemmigrate-sdk6-to-sdk7decentraland-ecsnew Entity()engine.addEntity()GLTFShapeGltfContainerOnPointerDownpointerEventsSystemISystemInput.instanceinputSystem{baseDir}/references/components-reference.md{baseDir}/references/components-reference.md{baseDir}/../create-scene/references/entity-validation-rules.md{baseDir}/../create-scene/references/entity-validation-rules.md{baseDir}/../add-3d-models/references/model-catalog.md{baseDir}/../audio-video/references/audio-catalog.md{baseDir}/../add-3d-models/references/model-catalog.md{baseDir}/../audio-video/references/audio-catalog.md{baseDir}/../composites/composite-reference.md.compositegetEntityOrNullByNamegetEntitiesByTag{baseDir}/../composites/composite-reference.md.compositegetEntityOrNullByNamegetEntitiesByTag{baseDir}/../npcs/references/npc-library.mdc{baseDir}/../nft-blockchain/references/blockchain-patterns.md{baseDir}/../npcs/references/npc-library.mdc{baseDir}/../nft-blockchain/references/blockchain-patterns.md