Michsky – Docs Michsky – Docs
  • Home
  • Documentation
    • Reach UI
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact
Michsky – Docs Michsky – Docs
Michsky – Docs
  • Home
  • Documentation
    • Reach UI
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact

DreamOS

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Changing Content
    • DreamOS UI Elements
  • Apps & Windows
    • App Library
    • Creating New Apps
    • Deleting Apps
    • Commander
    • Mail
    • Messaging
    • Music Player
    • Notepad
    • Photo Gallery
    • Reminder
    • Settings
    • Video Player
    • Web Browser
  • Managers
    • Audio Manager
    • Boot Manager
    • Date & Time
    • Events
    • Mod Manager
    • Multi Instance Manager
    • Network Manager
    • Notification Manager
    • User Manager
    • Widget Manager
    • World Space Manager
    • Window Manager
    • Wallpaper Manager
  • Others & Add-ons
    • Steam Messaging
  1. Home
  2. Docs
  3. DreamOS
  4. Apps & Windows
  5. Messaging
Updated on November 3, 2022

DreamOS

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Changing Content
    • DreamOS UI Elements
  • Apps & Windows
    • App Library
    • Creating New Apps
    • Deleting Apps
    • Commander
    • Mail
    • Messaging
    • Music Player
    • Notepad
    • Photo Gallery
    • Reminder
    • Settings
    • Video Player
    • Web Browser
  • Managers
    • Audio Manager
    • Boot Manager
    • Date & Time
    • Events
    • Mod Manager
    • Multi Instance Manager
    • Network Manager
    • Notification Manager
    • User Manager
    • Widget Manager
    • World Space Manager
    • Window Manager
    • Wallpaper Manager
  • Others & Add-ons
    • Steam Messaging

Messaging

Author: admin 97 views

Functional messaging app which supports getting and sending messages at runtime.

Workflow

Messaging app depends on its manager and scriptable objects. In order to add a new chat, you have to create a new chat asset from Assets > Create > DreamOS > New Messaging Chat. You can now select Canvas > Managers > Messaging and add hit add a new chat, and then assign the asset you’ve created. Each item has its own unique title and person data. All of the messages in the chat asset will be generated at runtime.

Properties

Property Type Function

debugStoryTeller

bool

Allows storyteller items to be initialized by their ID when enabled.

useNotifications

bool

Creates a notification when a new message is received.

saveSentMessages

bool

Allows custom messages to be saved. Requires MessageStoring component.

currentLayout

int

Returns the current chat layout index.

selectedLayout

GameObject

Returns the current chat layout game object.

Scripting

				
					using Michsky.DreamOS; // namespace

public MessagingManager messagingApp;

void YourFunction()
{
   // Force chat data to be updated
   messagingApp.InitializeChat();
  
   // Instantiate standard messages - you can leave parent as null and set a layoutIndex instead
   messagingApp.CreateMessage(Transform parent, int layoutIndex, "Message content");
   messagingApp.CreateIndividualMessage(Transform parent, int layoutIndex, "Message content");
  
   // Instantiate date indicator - you can leave parent as null and set a layoutIndex instead
   messagingApp.CreateDate(Transform parent, int layoutIndex, "Message content");
  
   // Instantiate image message - you can leave parent as null and set a layoutIndex instead
   messagingApp.CreateImageMessage(Transform parent, int layoutIndex, Sprite sprite, "Title", "Description");
   messagingApp.CreateIndividualImageMessage(Transform parent, int layoutIndex, Sprite sprite, "Title", "Description");
  
   // Instantiate audio message - you can leave parent as null and set a layoutIndex instead
   messagingApp.CreateAudioMessage(Transform parent, int layoutIndex, AudioClip audio);
   messagingApp.CreateIndividualAudioMessage(Transform parent, int layoutIndex, AudioClip audio);
  
   // Create storyteller
   messagingApp.CreateStoryTeller("Message/Chat ID", "StoryTeller Item ID");
  
   // Disable specific dynamic message reply
   messagingApp.DisableDynamicMessageReply("Message ID");
}				
			

Storyteller Events

If you want to invoke specific events on reply selection, you can add ‘Storyteller Reply Event’ component to any of your objects.

How can we help?

A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.

Content

© 2023 Michsky