LightVisual Methods |
The LightVisual type exposes the following members.
| Name | Description | |
|---|---|---|
| AddAspect(Object) | (Inherited from CoreVisual.) | |
| AddAspect(Object, Boolean) | Obsolete. (Inherited from Visual.) | |
| AddAspectT(T) |
Add an aspect instance.
(Inherited from Visual.) | |
| AddAspectT(T, Boolean) | Obsolete. (Inherited from Visual.) | |
| AddCustomProperty(String, Object, String) | Add a custom property to the visual. If the custom property already exists, then this call will update its value and description. (Inherited from Visual.) | |
| AddCustomProperty(String, Type, Object, String) |
Add a custom property to the visual. If the custom property already exists, then this call will update its value, type and description.
(Inherited from Visual.)Note: For most uses, AddCustomProperty(String, Object, String) or AddSimpleProperty(String, Object, String) is more suitable, because there is no need to pass the type parameter; it is taken automatically from the value. The only exception is if the value passed in is null, since we can't extract the type. | |
| AddSimpleProperty(String, Object, String) |
Add a custom property and also add a PropertyAlias for that new customer property making it appear as a Simple Property.
(Inherited from Visual.) | |
| AddSimpleProperty(String, Type, Object, String) |
Add a custom property and also add a PropertyAlias for that new customer property making it appear as a Simple Property.
(Inherited from Visual.) | |
| AddTemporaryProperty(String, Object) |
Create a temporary custom property that won't persistent on disk when saved.
The property will also be hidden in the user interface.
(Inherited from Visual.) | |
| AddTemporaryProperty(String, Object, String) |
Create a temporary custom property that won't persistent on disk when saved.
The property will also be hidden in the user interface.
(Inherited from Visual.) | |
| AddTemporaryProperty(String, Type, Object) |
Create a temporary custom property that won't persistent on disk when saved.
The property will also be hidden in the user interface.
(Inherited from Visual.) | |
| AddTemporaryProperty(String, Type, Object, String) |
Create a temporary custom property that won't persistent on disk when saved.
The property will also be hidden in the user interface.
(Inherited from Visual.) | |
| AlignToFloor |
Align the mesh bounding box of the Visual to the default FloorVisual of the Scene.
(Inherited from Visual.) | |
| AlignToFloor(Visual) |
Align the mesh bounding box of the Visual to the specified FloorVisual.
Pass 'null' or the SceneVisual to align to the default FloorVisual of the Scene.
(Inherited from Visual.) | |
| CancelAnimators |
Cancel any animations that are currently in progress.
(Inherited from Visual.) | |
| ChildrenAsList |
Return a List<Visual> representing all the children of this visual
(Inherited from Visual.) | |
| Clone |
Create a copy of a visual and its children placed in the
top level scene.
(Inherited from Visual.) | |
| ConnectedVisual |
Find the visual that is attached to the supplied connectorName.
(Inherited from Visual.) | |
| ConnectTo(String, Visual, String) |
Connect the visual to another visual with the corresponding connector names.
This connection replaces any existing connections on this or the other visual's connector.
(Inherited from Visual.) | |
| ConnectTo(String, Visual, String, Boolean) |
Connect the visual to another visual with the corresponding connector names.
This connection replaces any existing connections on this or the other visual's connector,
unless allowMultiple is true, in which case this connection is added to existing connections.
(Inherited from Visual.) | |
| Contains |
Is the visual contained by the visual tree from this point down?
(Inherited from Visual.) | |
| ContainsChild |
Is the child a direct child of the visual.
(Inherited from Visual.) | |
| CustomPropertyDefined | DEPRECATED: USE HasCustomProperty(String) INSTEAD. Determines whether a custom property has been defined or not. | |
| DefaultFactory | ||
| Delete |
Delete this visual. If it is in a Document, it is removed from the document as well.
(Inherited from Visual.) | |
| Disconnect |
Disconnect any connections on the supplied connector name.
(Inherited from Visual.) | |
| FadeToColor |
Changes the color over a given time.
This method blocks the current script until the transition is complete.
(Inherited from MeshObject.) | |
| FadeToColorDeep |
Animate the primary color of a visual and all its descendants in a given time.
(Inherited from Visual.) | |
| FadeToMultipleColors |
Changes the set of material colors over a given time.
This method blocks the current script until the transition is complete.
(Inherited from MeshObject.) | |
| FadeToTransparency | Change the transparency over a given time period. Note that this may have no effect if the visual has a texture in its material. (Inherited from MeshObject.) | |
| FadeToTransparencyDeep |
Animate the transparency of a visual and all its descendants in a given time.
(Inherited from Visual.) | |
| FilteredChildren |
Return the collection of child Visuals that match the given predicate.
(Inherited from Visual.) | |
| FilteredDescendants |
Return all visuals below this point in the Visual hierarchy that match the given predicate.
(Inherited from Visual.) | |
| FindAncestorsAspectT |
Find the first aspect of type T on one of the visuals ancestors (parent, grand-parent, etc.).
(Inherited from Visual.) | |
| FindAncestorsAspectsT |
Finds all aspects of type T on any of this visual's ancestors.
(Inherited from Visual.) | |
| FindAspect(Type) |
Finds and returns an aspect of a given type.
(Inherited from CoreVisual.) | |
| FindAspectT |
Finds and returns an aspect of a given type.
(Inherited from CoreVisual.) | |
| FindAspectsT |
Find all aspects that can be cast to the given type.
(Inherited from CoreVisual.) | |
| FindChild |
Look through children and their children to find the first visual of a given name.
Breadth first search.
(Inherited from Visual.) | |
| FindConnector |
Find a named connector on a conveyor object, e.g. "Start"
(Inherited from Visual.) | |
| FindCreateAspect(Type) |
Finds an aspect if it exists or Adds a new one if it doesn't exist.
(Inherited from CoreVisual.) | |
| FindCreateAspectT |
Finds an aspect if it exists or adds a new one if it doesn't exist.
(Inherited from CoreVisual.) | |
| FindCreateConnector |
Find or create a connector of the supplied name.
(Inherited from Visual.) | |
| FindCreateManagedAspectT | (Inherited from Visual.) | |
| FindCustomProperty |
Find a custom property by name if it exists. Otherwise return null.
(Inherited from Visual.) | |
| FindDotNetType | (Inherited from Visual.) | |
| FindFirstOfType |
Like FindType except it return the first instance of that type.
(Inherited from Visual.) | |
| FindImmediateChild |
Look through children to find a named visual.
(Inherited from Visual.) | |
| FindImmediateChildren |
Look through children to find all immediate children with a given name.
(Inherited from Visual.) | |
| FindImmediateType(Type) | (Inherited from Visual.) | |
| FindImmediateType(Type, IList) | (Inherited from Visual.) | |
| FindParent(PredicateVisual) |
Go back up through the parents of visuals to find a particular parent that matches the supplied predicate.
(Inherited from Visual.) | |
| FindParent(Type) |
Go back up through the parents of visuals to find a particular parent type.
(Inherited from Visual.) | |
| FindType(Type) |
Find all the objects in the Descendants of type Type (all descendants)
(Inherited from Visual.) | |
| FindType(Type, IList) |
Find all the objects in the Descendants of type Type (all descendants)
(Inherited from Visual.) | |
| FindVisualAndAncestorsAspectT |
Find the first aspect of type T on this visual or one of its ancestors (parents, grand-parents, etc.).
(Inherited from Visual.) | |
| FindVisualAndAncestorsAspectsT |
Finds all aspects of type T on this visual or its ancestors.
(Inherited from Visual.) | |
| FindVisualAndDescendantsAspectT |
Find the first aspect of type T on this visual or one of its descendents (children recursively)
(Inherited from Visual.) | |
| FindVisualAndDescendantsAspectsT |
Find all aspects of type T on this visual or one of its descendents (children recursively)
(Inherited from Visual.) | |
| FindVisualType |
Find all the visuals that have their Type field set to 'type'.
(Inherited from Visual.) | |
| Freeze |
Hold the load in one position by making it kinematic.
(Inherited from Visual.) | |
| GetCustomProperty |
Get the container class for a custom property, or null if it doesn't exist.
(Inherited from Visual.) | |
| GetCustomPropertyValue(String) |
Get the value of a custom property, or null if it doesn't exist.
(Inherited from Visual.) | |
| GetCustomPropertyValueT(String, T) |
Get the value of a custom property, or a defaultValue if it doesn't exist.
(Inherited from Visual.) | |
| GoToInitialPosition |
Set the Location and Rotation of the Visual to be the same as the InitialLocation and InitialRotation.
(Inherited from Visual.) | |
| GoToInitialRotation |
Set the Rotation of the Visual to be the same as the InitialRotation. The Location remains unchanged.
(Inherited from Visual.) | |
| HasAspectT |
Returns whether an aspect of a given type can be found on the visual.
(Inherited from Visual.) | |
| HasCustomProperty |
Determines whether a custom property has been defined or not.
(Inherited from Visual.) | |
| InitializeDefault | (Inherited from Visual.) | |
| IsAncestorOf |
Is this Visual a parent, grandparent, great grandparent etc. of the
potentialChild.
(Inherited from Visual.) | |
| IsDeleted |
Determine if the Visual been deleted.
(Inherited from Visual.) | |
| MenuSetInitialPosition | (Inherited from Visual.) | |
| MoveTo(Matrix) |
Move to a new matrix location instantly.
(Inherited from Visual.) | |
| MoveTo(Vector3) |
Move to a new location instantly.
(Inherited from Visual.) | |
| MoveTo(Matrix, SpeedProfile) |
Move to a new matrix location using a speed profile.
(Inherited from Visual.) | |
| MoveTo(Matrix, Double) |
Move to a new matrix location at a given speed.
(Inherited from Visual.) | |
| MoveTo(Vector3, SpeedProfile) |
Move to a new location given a speed profile.
(Inherited from Visual.) | |
| MoveTo(Vector3, Double) |
Move to a new location given a speed.
(Inherited from Visual.) | |
| MoveTo(Matrix, Double, Double) |
Move to a new matrix location at a given speed and acceleration.
(Inherited from Visual.) | |
| MoveTo(Vector3, Double, Double) |
Move to a new location given a speed and acceleration.
(Inherited from Visual.) | |
| MoveTo(Visual, Matrix, SpeedProfile) |
Move to a new matrix location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Visual, Matrix, Double) |
Move to a new matrix location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Visual, Vector3, SpeedProfile) |
Move to a new location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Visual, Vector3, Double) |
Move to a new location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Matrix, Double, Double, Double) |
Move to a new matrix location at a given speed, acceleration and deceleration.
(Inherited from Visual.) | |
| MoveTo(Vector3, Double, Double, Double) |
Move to a new location given a speed, acceleration, and deceleration.
(Inherited from Visual.) | |
| MoveTo(Visual, Matrix, Double, Double) |
Move to a new matrix location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Visual, Vector3, Double, Double) |
Move to a new location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Visual, Matrix, Double, Double, Double) |
Move to a new matrix location relative to another visual.
(Inherited from Visual.) | |
| MoveTo(Visual, Vector3, Double, Double, Double) |
Move to a new location relative to another visual.
(Inherited from Visual.) | |
| MoveToInitialPosition |
Move to the InitialPosition and InitialRotation.
(Inherited from Visual.) | |
| NotifyMeshChanged | (Inherited from Visual.) | |
| NotifyOnMouseUp | (Inherited from Visual.) | |
| PopRoutingTarget |
Pop a routing target from the current routing target stack, making the next target down the stack the new current routing target.
Remove this visual from the previous target's custom property called "RoutingTargetAllocators".
(Inherited from Visual.) | |
| PushRoutingTarget |
Push a new routing target onto the stack of routing targets, making this the new current routing target.
Add this visual to a custom property on the target called "RoutingTargetAllocators".
This is normally called for loads.
(Inherited from Visual.) | |
| RecalculateConnections |
Attach or detach connectors and accessories to or from valid connections on this visual and all children.
(Inherited from Visual.) | |
| RemoveAspect(Object) | (Inherited from CoreVisual.) | |
| RemoveAspect(Type) |
Removes an aspect of a given type.
(Inherited from Visual.) | |
| RemoveAspect(Object, Boolean) | Obsolete. (Inherited from Visual.) | |
| RemoveAspectT |
Removes an aspect.
(Inherited from Visual.) | |
| RemoveAspectT(T) |
Removes an aspect instance.
(Inherited from Visual.) | |
| RemoveAspectT(T, Boolean) | Obsolete. (Inherited from Visual.) | |
| RemoveConnector |
Remove a connector with a certain name.
(Inherited from Visual.) | |
| RemoveCustomProperty |
Remove a custom property from the Visual.
(Inherited from Visual.) | |
| Reparent |
Remove this visual from the current parent's list of children (if current parent is not null),
and add it to the new parent's list of children (if new parent is not null).
The visual's matrix is adjusted accordingly, such that its top-level world location and
orientation is preserved.
(Inherited from Visual.) | |
| Rotate(Axis, SpeedProfile) |
Set the visual rotating.
(Inherited from Visual.) | |
| Rotate(Axis, Double) |
Set the visual rotating.
(Inherited from Visual.) | |
| Rotate(Axis, Double, Double) |
Set the visual rotating.
(Inherited from Visual.) | |
| Rotate(Visual, Axis, SpeedProfile) |
Set the visual rotating.
(Inherited from Visual.) | |
| Rotate(Visual, Axis, SpeedProfile, RotationDirection) |
Set the visual rotating.
(Inherited from Visual.) | |
| RotateByImmediate | (Inherited from Visual.) | |
| RotateToImmediate |
Rotate immediately around a given local axis to a given angle relative to the visual's initial position.
(Inherited from Visual.) | |
| RotateToLocalX |
Rotate around the local X axis a given amount at a given speed.
(Inherited from Visual.) | |
| RotateToLocalY |
Rotate around the local Y axis a given amount at a given speed.
(Inherited from Visual.) | |
| RotateToLocalZ |
Rotate around the local Z axis a given amount at a given speed.
(Inherited from Visual.) | |
| SetCustomPropertyValueT |
Set the value of a custom property or do nothing if it doesn't exist.
(Inherited from Visual.) | |
| SetInitialPosition |
Set InitialLocation to be the current Location and InitialRotation to be the current Rotation.
(Inherited from Visual.) | |
| SetIsStaticDeep |
Set the IsStatic property for this Visual and all children recursively.
(Inherited from Visual.) | |
| SetNativeObject |
Set the native C# scripting class instance for this visual
(Inherited from Visual.) | |
| SetScriptNativeTypeName |
Atomically set the Script and NativeTypeName together but only create the NativeObject once.
(Inherited from Visual.) | |
| SimulateLoad |
Indicates that this Visual should now be in control of simulating the supplied load.
(Inherited from CoreVisual.) | |
| SortChildrenAscendingT | (Inherited from Visual.) | |
| SortChildrenAscendingDeepT | (Inherited from Visual.) | |
| Stick |
Reparents this visual to a specified parents and disables physics.
This is intended for use with loads, where parent is generally a vehicle or some visual that will be moving the load.
(Inherited from Visual.) | |
| StickKinematic |
Reparents this visual to a specified parents and sets visual to be kinematic
This is intended for use with loads, where parent is generally a vehicle or some visual that will be moving the load.
(Inherited from Visual.) | |
| ToStream |
Convert a visual to a stream containing XML.
Use Document.CreateVisual to turn it back into a copy of the original visual.
(Inherited from Visual.) | |
| ToXml |
Convert a visual to XML.
Use Document.CreateVisual to turn it back into a copy of the original visual.
(Inherited from Visual.) | |
| TransformFromWorld |
Transform a world coordinate to a local coordinate
(Inherited from Visual.) | |
| TransformFromWorldNormal |
Transform a world normal to a local normal
(Inherited from Visual.) | |
| TransformFromWorldRotationDegrees |
Transform a world rotation (in degrees) to a local rotation (in degrees).
(Inherited from Visual.) | |
| TransformFromWorldRotationRadians |
Transform a world rotation (in radians) to a local rotation (in radians).
(Inherited from Visual.) | |
| TransformToParent |
Transform a local coordinate to coordinate local to parent.
(Inherited from Visual.) | |
| TransformToParentNormal |
Transform a local normal to normal local to parent
(Inherited from Visual.) | |
| TransformToWorld |
Transform a local coordinate to a world coordinate.
(Inherited from Visual.) | |
| TransformToWorldNormal |
Transform a local normal to a world normal.
(Inherited from Visual.) | |
| TransformToWorldRotationDegrees |
Transform a local rotation (in radians) to a world rotation (in radians).
(Inherited from Visual.) | |
| TransformToWorldRotationRadians |
Transform a local rotation (in radians) to a world rotation (in radians).
(Inherited from Visual.) | |
| TranslateLocalX(Double) |
Instantly move the visual along its local X axis by xOffset units
(Inherited from Visual.) | |
| TranslateLocalX(Double, Double) |
Move the visual along its local X axis by xOffset units, at the given speed.
(Inherited from Visual.) | |
| TranslateLocalX(Double, Double, Double, Double) |
Move the visual along its local X axis by xOffset units, at the given speed and acceleration
(Inherited from Visual.) | |
| TranslateLocalY(Double) |
Instantly move the visual along its local Y axis by yOffset units
(Inherited from Visual.) | |
| TranslateLocalY(Double, Double) |
Move the visual along its local Y axis by yOffset units, at the given speed.
(Inherited from Visual.) | |
| TranslateLocalY(Double, Double, Double, Double) |
Move the visual along its local Y axis by yOffset units, at the given speed and acceleration
(Inherited from Visual.) | |
| TranslateLocalZ(Double) |
Instantly move the visual along its local Z axis by zOffset units
(Inherited from Visual.) | |
| TranslateLocalZ(Double, Double) |
Move the visual along its local Z axis by zOffset units, at the given speed.
(Inherited from Visual.) | |
| TranslateLocalZ(Double, Double, Double, Double) |
Move the visual along its local Z axis by zOffset units, at the given speed and acceleration
(Inherited from Visual.) | |
| TranslateX(Double) |
Instantly move the visual along the model's X axis by xOffset units
(Inherited from Visual.) | |
| TranslateX(Double, Double) |
Move the visual along the model's X axis by xOffset units, at the given speed.
(Inherited from Visual.) | |
| TranslateX(Double, Double, Double, Double) |
Move the visual along the model's X axis by xOffset units, at the given speed and acceleration
(Inherited from Visual.) | |
| TranslateY(Double) |
Instantly move the visual along the model's Y axis by yOffset units
(Inherited from Visual.) | |
| TranslateY(Double, Double) |
Move the visual along the model's Y axis by yOffset units, at the given speed.
(Inherited from Visual.) | |
| TranslateY(Double, Double, Double, Double) |
Move the visual along the model's Y axis by yOffset units, at the given speed and acceleration.
(Inherited from Visual.) | |
| TranslateZ(Double) |
Instantly move the visual along the model's Z axis by zOffset units
(Inherited from Visual.) | |
| TranslateZ(Double, Double) |
Move the visual along the model's Z axis by zOffset units, at the given speed.
(Inherited from Visual.) | |
| TranslateZ(Double, Double, Double, Double) |
Move the visual along the model's Z axis by zOffset units, at the given speed and acceleration.
(Inherited from Visual.) | |
| TurnTo(Matrix) |
Immediate Matrix TurnTo
(Inherited from Visual.) | |
| TurnTo(Vector3) |
Turn to a new yaw pitch roll instantly.
(Inherited from Visual.) | |
| TurnTo(Matrix, SpeedProfile) |
Main Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Matrix, Double) |
Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Vector3, Double) |
Turn to a new yaw pitch roll in a fixed time.
(Inherited from Visual.) | |
| TurnTo(Axis, Double, SpeedProfile) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Axis, Double, Double) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Matrix, Double, Double) |
Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Visual, Matrix, SpeedProfile) |
Main Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Visual, Matrix, Double) |
Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Axis, Double, SpeedProfile, RotationDirection) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Axis, Double, Double, Double) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Matrix, Double, Double, Double) |
Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Visual, Axis, Double, SpeedProfile) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Visual, Axis, Double, Double) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Visual, Matrix, Double, Double) |
Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Axis, Double, Double, Double, Double) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Visual, Axis, Double, SpeedProfile, RotationDirection) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Visual, Axis, Double, Double, Double) |
Turns to a target rotation.
(Inherited from Visual.) | |
| TurnTo(Visual, Matrix, Double, Double, Double) |
Matrix TurnTo method
(Inherited from Visual.) | |
| TurnTo(Visual, Axis, Double, Double, Double, Double) |
Turns to a target rotation.
(Inherited from Visual.) | |
| Unfreeze |
Release the load in one position by making it dynamic.
(Inherited from Visual.) | |
| Unstick |
Reparents this (stuck) visual to the scene and restores its physics state.
(Inherited from Visual.) | |
| WaitForAnimator | (Inherited from Visual.) | |
| WakeUpSurroundingVisuals |
Wake up any surrounding loads that might have been disabled so they don't remain in midair.
(Inherited from Visual.) |