Skip to content

Get Sansar

Script API

RegisterReflectiveAttribute

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

Registers this class to be found via ScenePrivate.FindReflective.

[System.AttributeUsage(System.AttributeTargets.Class)]
public class RegisterReflectiveAttribute : Attribute

Remarks

Every instance of a reflective object with this attribute will be automatically registered with the scene to be found by ScenePrivate.FindReflective. Specific instances of a Reflective class can be registered manually with Reflective.Register. For script objects themselves it is recommended to use this attribute to minimize race conditions between Register calls and FindReflective calls.

Members at a glance

KindMembers
ConstructorsRegisterReflectiveAttribute

Constructors

RegisterReflectiveAttribute

public RegisterReflectiveAttribute()

Automatically registers all instances of this class to be found with ScenePrivate.FindReflective .

Remarks

Every instance of a reflective object with this attribute will be automatically registered with the scene to be found by ScenePrivate.FindReflective. Specific instances of a Reflective class can be registered manually with Reflective.Register. For script objects themselves it is recommended to use this attribute to minimize race conditions between Register calls and FindReflective calls.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.