ProjectMetadata
class ProjectMetadata extends ObjectMetaFieldReturnTypetypeof createProjectMetadata
Constructors
constructor
public override new ProjectMetadataproject: Project: ProjectMetadata
Parameters
OverwritesObjectMetaField<
ReturnType<typeof createProjectMetadata>
>.constructor
Properties
description
public description: string = ''
ObjectMetaField.description
initial
readonly public initial: ValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...
The initial value of this field.
Inherited fromObjectMetaField.initial
name
readonly public name: string
The name of this field displayed in the editor.
Inherited fromObjectMetaField.name
preview
preview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...
ObjectMetaField.preview
rendering
rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...
ObjectMetaField.rendering
shared
shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...
ObjectMetaField.shared
spacing
public spacing: boolean = false
ObjectMetaField.spacing
type
readonly public type: ObjectConstructor = Object
ObjectMetaField.type
version
Inherited from ObjectMetaField.version
Events
onChanged
public get onChanged(): SubscribableValueEventTValue
Triggered when the data of this field changes.
Inherited fromObjectMetaField.onChanged
onDisabled
public get onDisabled(): SubscribableValueEventboolean
Triggered when the field becomes disabled or enabled.
Inherited fromObjectMetaField.onDisabled
onFieldsChanged
public get onFieldsChanged(): SubscribableValueEventMetaFieldunknownunknown[]
Triggered when the nested fields change.
Inherited fromObjectMetaField.onFieldsChanged
Methods
clone
public clone(): ProjectMetadata
ObjectMetaField.clone
describe
public describedescription: string: ProjectMetadata
Set the description of this field.
Parameters
description: string
The description.
ObjectMetaField.describe
disable
public disablevalue: boolean = true: ProjectMetadata
Disable or enable the field in the editor.
Parameters
value: boolean = true
Whether the field should be disabled.
ObjectMetaField.disable
get
public get(): ValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...
Get the current value.
Inherited fromObjectMetaField.get
getFullPreviewSettings
public getFullPreviewSettings(): audioOffset: numberbackground: nullColorfps: numberrange: numbernumberresolutionScale: numbersize: Vector2
getFullRenderingSettings
public getFullRenderingSettings(): audioOffset: numberbackground: nullColorcolorSpace: CanvasColorSpaceexporter: name: stringoptions: unknownfps: numberrange: numbernumberresolutionScale: numbersize: Vector2
parse
public parsevalue: ValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...: ValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...
Convert a serialized value into a runtime type.
Parameters
value: ValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...
The serialized value.
ObjectMetaField.parse
serialize
public serialize(): ValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...
ObjectMetaField.serialize
set
public setvalue: PartialValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...: void
Parameters
value: PartialValueOfpreview: ObjectMetaFieldfps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...rendering: ObjectMetaFieldcolorSpace: EnumMetaFieldCanvasColorSpace = ...exporter: ExporterMetaField = ...fps: NumberMetaField = ...resolutionScale: EnumMetaFieldnumber = ... = ...shared: ObjectMetaFieldaudioOffset: NumberMetaField = ...background: ColorMetaField = ...range: RangeMetaField = ...size: Vector2MetaField = ... = ...version: MetaFieldunknownnumber = ...
ObjectMetaField.set
space
public spacevalue: boolean = true: ProjectMetadata
Add or remove spacing at the beginning of this field.
Parameters
value: boolean = true
Whether to include the spacing.
ObjectMetaField.space