RegisterReflectiveAttribute

RegisterReflectiveAttribute Class

Registers this class to be found via Sansar.Simulation.ScenePrivate.FindReflective``1(string).

Syntax

[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 Sansar.Simulation.ScenePrivate.FindReflective``1(string). 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.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from Attribute.

Public Constructors

 
Automatically registers all instances of this class to be found with Sansar.Simulation.ScenePrivate.FindReflective``1(string) .

Member Details

RegisterReflectiveAttribute Constructor

Automatically registers all instances of this class to be found with Sansar.Simulation.ScenePrivate.FindReflective``1(string) .

Syntax

public RegisterReflectiveAttribute ()

Remarks

Every instance of a reflective object with this attribute will be automatically registered with the scene to be found by Sansar.Simulation.ScenePrivate.FindReflective``1(string). 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.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.