SurfaceComponentFollowTarget Class
Definition
Section titled “Definition”Add to a IScreenSurface to have the ViewPosition center on a specific object.
public class SurfaceComponentFollowTarget : UpdateComponent, IComponentInheritance object → UpdateComponent
Implements IComponent
Constructors
Section titled “Constructors”SurfaceComponentFollowTarget()
Section titled “SurfaceComponentFollowTarget()”public SurfaceComponentFollowTarget()Properties
Section titled “Properties”Target
Section titled “Target”Target to have the surface follow.
public IScreenObject? Target { get; set; }Methods
Section titled “Methods”OnAdded(IScreenObject)
Section titled “OnAdded(IScreenObject)”Called when the component is added to a host.
public override void OnAdded(IScreenObject host)Parameters
Section titled “Parameters”host IScreenObject
The host that added the component.
Update(IScreenObject, TimeSpan)
Section titled “Update(IScreenObject, TimeSpan)”Called by a host on the update frame.
public override void Update(IScreenObject hostObject, TimeSpan delta)Parameters
Section titled “Parameters”hostObject IScreenObject
delta TimeSpan
The time that has elapsed since this method was last called.