Data type
Content
Represents a reference to asset content stored externally or as an object within the place.
About Content
The Content data type represents a reference to asset content stored
externally or as an object within the place, wrapping a single value of one of
the supported ContentSourceType values.
Warning
Replication is not yet supported for Object values.
When an Instance with a Content property containing a
Object value is replicated, an unusable placeholder
Object of the same type will be used instead of the Object
itself, and any attempt to read or write the contents of that placeholder
object will throw. These placeholder objects will render as a cyan and magenta
checkerboard pattern.
This will be replaced with standard replication behavior in the future. For
now, do not use EditableImage or EditableMesh as
Content on the server on an Instance that can replicate to
clients.
Constructors 3
Properties 5
none
: ContentAn emptyContentvalue withContent.SourceTypeofNone.SourceType
: Enum.ContentSourceTypeThe source type of the contained value.The source type of the contained value. Indicates which property contains a non‑
nilvalue.Uri
: string?A URIstringifContent.SourceTypeisUri, otherwisenil.Object
: Object?A reference to a non-nilObjectifContent.SourceTypeisObject, otherwisenil.Opaque
: Opaque?A reference to a non-nilOpaquecontent ifContent.SourceTypeisOpaque, otherwisenil.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.