Skip to content

DNATraces

The DNATraces API is used to manage DNA traces on different objects. It can be applied to any object with an Extras field, such as props, participant, items, and others.

export type HasDNATraces = {
Extras: {
DNATraces: {DNATrace}?,
[any]: never,
},
}
export type DNATrace = {
Object: Instance,
Target: string,
ExpiresAt: number?,
Icon: Content,
}

Adds a DNA trace to an object.

NameTypeDefaultDescription
objectHasDNATracesThe object.
targetParticipantThe participant associated with the trace.
durationnumber?The time until the DNA trace decays.
iconContentThe icon to show.
instanceInstanceThe instance associated with the object.

Removes all DNA traces from the specified object.

NameTypeDefaultDescription
objectHasDNATracesThe object.

Returns the list of DNA traces on the object.

NameTypeDefaultDescription
objectHasDNATracesThe object.

{DNATrace}

Returns true if the specified list of traces has an equivalent trace (same object and target).

NameTypeDefaultDescription
traces{DNATrace}The traces to check.
traceDNATraceThe trace.

boolean