Click or drag to resize

SceneDisplayCondition Class

A display condition used to control what scene or scenes an object, such as a primitive, is rendered in. This is used to show an object in some scenes and hide it in others.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public sealed class SceneDisplayCondition : DisplayCondition

The SceneDisplayCondition type exposes the following members.

Constructors
  NameDescription
Public methodSceneDisplayCondition
Initializes a default scene display condition. When this display condition is assigned to an object, such as a primitive, the object can be restricted to only render in certain scenes. Call SetDisplayInScene(Scene, Boolean) or DisplayOnlyInScene(Scene) to limit the scenes.
Top
Methods
  NameDescription
Public methodDisplayOnlyInScene
Allows rendering only in the given scene. The display condition will not allow rendering in other scenes, including newly created ones.
Public methodDispose (Inherited from DisplayCondition.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetDisplayInScene
Determines whether the display condition allows rendering rendering in the given scene.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetDisplayInScene
Allows or disallows rendering for in a particular scene for.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also