Skip to content

Format

typescript
NetServer.CreateNewEntity(prefab_id, userdata, NetEntity?)

class: NetServer

Description

Create a new entity for synchronizing information.

Parameters

param_nametypedescription
prefab_idstringprefab id
userdatastringUser data
NetEntity?callbackCallback

Return

typedescription
void

Code Example