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) .
 
Automatically registers all instances of this class to be found with Sansar.Simulation.ScenePrivate.FindReflective``1(string) or Sansar.Simulation.ObjectPrivate.FindScript``1().

Public Fields

 
RegisteredContext Reflective.Context . The context to have this script available in.

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

RegisterReflectiveAttribute Constructor

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

Syntax

public RegisterReflectiveAttribute (Reflective.Context registeredContext)

Parameters

registeredContext
The contexts that this reflective can be found in. Multiple contexts can be combined to make this Reflective available to multiple contexts. Defaults to (ScenePrivate | ObjectPrivate).

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) or Sansar.Simulation.ObjectPrivate.FindScript``1(). 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. The registeredContext can be used to control which FindReflective or FindScript methods can be used to find this API.

Requirements

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

RegisteredContext Field

The context to have this script available in.

Syntax

public Reflective.Context RegisteredContext

Remarks

Documentation for this section has not yet been entered.

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.