◆ CreateObservableObject()

Observable EdgeMultiplay.NetworkedPlayer.CreateObservableObject ( string  prefabName,
Vector3  startPosition,
Quaternion  startRotation,
SyncOptions  syncOption,
bool  interpolatePosition = false,
bool  interpolateRotation = false,
float  interpolationFactor = 0 
)

Creates synced GameObject in runtime in the local player's world and sends an event to all players in the room to create the observable in their worlds

Parameters
prefabNameThe name of your prefab (Game Object) stored in Resources Folder without extensions ex. 'Ball'
startPositionthe inital position of the spawning
startRotationthe inital rotation of the spawning
syncOptionWhich Synchronization option will be applied
interpolatePositionSet to true if you want to smoothen the tracked position if you have network lag
interpolateRotationSet to true if you want to smoothen the tracked rotation if you have network lag
interpolationFactorSet Interpolation factor between 0.1 and 1
Returns
The created Observer object