跳转到内容

registerReplicationArchetype

此内容尚不支持你的语言。

registerReplicationArchetype(key, build): void

Defined in: net/replication/archetype.ts:39

Declare how a ghost of key is built. The server names one per replicated entity through Replicated.archetype, and a client that cannot resolve the key refuses the spawn rather than building half of it. Synchronous in this first form: a key resolving to a preloaded prefab is a later question.

string

ReplicationArchetype

void