s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
IEvents
chevron_left API Reference
interface
IEvents

Methods

functionsOnStreamGiftSubscribefunctionsOnStreamGiftSubscriptionsfunctionsOnStreamJoinfunctionsOnStreamLeavefunctionsOnStreamMessagefunctionsOnStreamRaidfunctionsOnStreamSubscribe
IEvents
Implement this on a <c>Component</c> to receive stream chat events. They're dispatched to the active scene on the main thread, so it's safe to touch GameObjects from these.
interface Sandbox.Streamer .
abstractSandbox.Engine

functions Methods 7

OnStreamGiftSubscribe (message)
A viewer gifted a subscription to a specific recipient.
OnStreamGiftSubscriptions (message)
A viewer gifted a batch of subscriptions to the community (a mystery/community gift).
OnStreamJoin (viewer)
A viewer joined chat.
OnStreamLeave (viewer)
A viewer left chat. Note that Twitch sends leaves unreliably, so don't count on this firing.
OnStreamMessage (message)
A chat message was received. Cheers arrive here too - check Sandbox.Streamer.ChatMessage.Bits.
OnStreamRaid (message)
Another channel raided yours, bringing their viewers with them.
OnStreamSubscribe (message)
A viewer subscribed or resubscribed to the channel.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter