Skip to content

Get Sansar

Script API

LockedAttribute

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Script Inherits Attribute

Locks the IDictionary or IList properties so entries can not be added or removed.

[System.AttributeUsage(System.AttributeTargets.Field)]
public class LockedAttribute : Attribute

Remarks

Should be used in conjunction with EntriesAttribute or AddEntryAttribute.

Members at a glance

KindMembers
ConstructorsLockedAttribute

Constructors

LockedAttribute

public LockedAttribute()

Locks the IDictionary or IList properties so entries can not be added or removed.

Remarks

Should be used in conjunction with EntriesAttribute or AddEntryAttribute.

IDictionary keys will be unchangeable and entries can not be added or removed.

IList entries can not be added or removed.

Will not prevent values from being modified in either case.

Has no effect on other parameter types.

Example
[Locked]
public IList<float>floatList;

Generated from the Sansar 47.10.0 client ScriptApi snapshot.