LogoLogo
Scripting DocsSupport
Scripting
Scripting
  • Sinespace Scripting Documentation
  • Client Scripting
    • Viewer
      • SDialogues
      • SInput
      • SShared
      • SUI
    • Network
      • SChat
      • SNetwork
      • SPhotos
      • SVideos
      • SWebService
    • Player
      • SEconomy
      • SGroup
      • SInventory
      • SProfile
      • SQuests
    • Region
      • SCameraManager
      • SGrid
      • SHost
      • SPersistence
      • SPhysics
      • SPostFX
      • SScene
      • SScript
      • SRenderSettings
    • Components
      • SAnimation
      • SAnimator
      • SAudioReactiveAnimation
      • SAudioReactiveBase
      • SAudioReactiveLight
      • SAudioReactiveMaterial
      • SAudioReactiveParticleSystem
      • SAudioReactiveTransform
      • SAudioSource
      • SBoxCollider
      • SBrowserSurface
      • SCamera
      • SCanvasGroup
      • SCapsuleCollider
      • SCharacterController
      • SClickable
      • SCloth
      • SCollider
      • SContentSizeFitter
      • SEmbeddedVideo
      • SEventCalendar
      • SFurniture
      • SGraphicRaycaster
      • SHingeJoint
      • SLight
      • SLineRenderer
      • SMeshRenderer
      • SModularVehicle
      • SNavMeshAgent
      • SNavMeshObstacle
      • SNetworking
      • SParticleSystem
      • SPlayableDirector
      • SPostProcessVolume
      • SRectTransform
      • SReflectionProbe
      • SRenderer
      • SRigidbody
      • SRoomFloor
      • SSceneBackgroundMusic
      • SScriptingData
      • SScriptingEvents
      • SScriptingResources
      • SScriptingRuntime
      • SSeat
      • SSkinnedMeshRenderer
      • SSphereCollider
      • SStateMachine
      • STerrain
      • STrailRenderer
      • SUIButton
      • SUICanvas
      • SUIDropdown
      • SUIImage
      • SUIInputField
      • SUILayout
      • SUIRawImage
      • SUIScrollbar
      • SUISlider
      • SUIText
      • SUIToggle
      • SUIToolTipHint
      • SVirtualCamera
      • SVoiceZone
    • Types
      • SAnimationState
      • SAnimatorStateInfo
      • SAvatar
      • SAvatarAppearance
      • SChatMessage
      • SColor
      • SCommandBuffer
      • SDateTime
      • SGameObject
      • SGenre
      • SGroupInfo
      • SInventoryItem
      • SJointLimits
      • SJointMotor
      • SJointSpring
      • SLandmark
      • SLayerMask
      • SMaterial
      • SMath
      • SMusicDirectory
      • SMusicStation
      • SMusicStationList
      • SNetworkMessageLua
      • SOutfit
      • SParticle
      • SPhysicsHit
      • SPublicRegion
      • SQuaternion
      • SRay
      • SRect
      • SResource
      • SScore
      • SScoreRank
      • SString
      • SSubRegion
      • STrackInfo
      • STuneIn
      • SUIRaycastResult
      • SUserRegions
      • SVector
      • SUserProfile
      • SSocialMedia
      • SWebResponse
  • Server Scripting
    • Library
      • SMath
    • Network
      • SShared
      • SWebservice
    • Region
      • SAvatar
      • SCell
      • SObject
      • SParcel
      • SParcelManager
      • SRegionScript
      • SScene
    • Storage
      • SDatabase
  • Guides
    • Persistence
    • Server Scripts
  • Sample Projects
    • Smart Lights
    • Trivia Box
  • Changelog
    • API Changelog
  • Support
    • Report An Issue
Powered by GitBook

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.

On this page
  • Index
  • Functions Index
  • Properties Index
  • Functions
  • SendEvent
  • ReceiveEvent
  • Properties
  • Enabled
  • Instanced
  • NetworkName
  • Ready
  • EventCount
  • EventNames
  • GameObject

Was this helpful?

Export as PDF
  1. Client Scripting
  2. Components

SNetworking

Index

Functions Index

Function Name

Properties Index

Property Name

Functions

SendEvent

void SendEvent (string eventName)

Send a networking event event that will be received by other components in the scene with the same network name.

Parameter
Type
Description

Space.Host.ExecutingObject.Networking.SendEvent("Light On")

ReceiveEvent

void ReceiveEvent (string eventName)

Invoke an event on the networking component. Normally not necessary to do manually, as this happens automatically when receiving a matching event over the network, but may be useful to initialize a state.

Parameter
Type
Description

Space.Host.ExecutingObject.Networking.ReceiveEvent("Light On")

Properties

Enabled

bool Enabled get set

Whether the simple networking component is Enabled or not

Space.Host.ExecutingObject.Networking.Enabled = true

Instanced

bool Instanced get

Returns whether this networking component is instanced or not.

isInstanced = Space.Host.ExecutingObject.Networking.Instanced

NetworkName

string NetworkName get set

Returns or sets the name of the network. Network name must be at least 20 characters long without trailing or leading spaces.

Space.Host.ExecutingObject.Networking.NetworkName = "Example Network Name 1"

Ready

bool Ready get

Return whether the networking component is ready to send or not (is initialized).

isReady = Space.Host.ExecutingObject.Networking.Ready

EventCount

int EventCount get

Return the number of events this component is waiting to receive.

count = Space.Host.ExecutingObject.Networking.EventCount

EventNames

string[] EventNames get

Return a list of names of events that this component will receive.

tableOfNames = Space.Host.ExecutingObject.Networking.EventNames

GameObject

Property Description

theGameObject = Space.Host.ExecutingObject.Networking.GameObject
PreviousSNavMeshObstacleNextSParticleSystem

Last updated 2 years ago

Was this helpful?

void (string eventName)

void (string eventName)

bool get set

bool get

string get set

bool get

int get

string[] get

SGameObject get

GameObject get

SGameObject
SendEvent
ReceiveEvent
Enabled
Instanced
NetworkName
Ready
EventCount
EventNames
GameObject