Skip to content

Get Sansar

Script API

MaxEntriesAttribute

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

Set the Maximum number of array values allowed.

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

Remarks

Defaults to 20, which is the system maximum.

Members at a glance

KindMembers
ConstructorsMaxEntriesAttribute

Constructors

MaxEntriesAttribute

public MaxEntriesAttribute(int maxCount)

Set the Maximum number of IList or IDictionary allowed.

ParameterTypeDescription
maxCountint
Remarks

Defaults to 20, which is the system maximum.

Example
[MaxValues(1)]
public IList<float>floatList;

Generated from the Sansar 47.10.0 client ScriptApi snapshot.