ScriptComponent Class
Namespace: Stride.Engine
Assembly: Stride.Engine.dll
[DataContract("ScriptComponent", Inherited = true)]
[DefaultEntityComponentProcessor(typeof(ScriptProcessor), ExecutionMode = ExecutionMode.Runtime)]
[Display(null, null, Expand = ExpandRule.Once)]
[ComponentOrder(1000)]
[ComponentCategory("Scripts")]
public abstract class ScriptComponent : EntityComponent, IIdentifiable, ICollectorHolder
|
Improve this Doc
View Source
Constructors
ScriptComponent()
protected ScriptComponent()
|
Improve this Doc
View Source
Fields
LiveScriptingMask
public const uint LiveScriptingMask = 128U
Field Value
Type |
Description |
System.UInt32 |
|
ScriptGlobalProfilingKey
The global profiling key for scripts. Activate/deactivate this key to activate/deactivate profiling for all your scripts.
public static readonly ProfilingKey ScriptGlobalProfilingKey
Field Value
|
Improve this Doc
View Source
Properties
Audio
public AudioSystem Audio { get; }
Property Value
Collector
The object collector associated with this script.
public ObjectCollector Collector { get; }
Property Value
Content
public ContentManager Content { get; }
Property Value
DebugText
public DebugTextSystem DebugText { get; }
Property Value
EffectSystem
public EffectSystem EffectSystem { get; }
Property Value
Game
public IGame Game { get; }
Property Value
GameProfiler
public GameProfilingSystem GameProfiler { get; }
Property Value
GraphicsDevice
public GraphicsDevice GraphicsDevice { get; }
Property Value
public InputManager Input { get; }
Property Value
IsLiveReloading
Determines whether the script is currently undergoing live reloading.
public bool IsLiveReloading { get; }
Property Value
Type |
Description |
System.Boolean |
|
Log
protected Logger Log { get; }
Property Value
Priority
The priority this script will be scheduled with (compared to other scripts).
[DataMember(10000)]
public int Priority { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ProfilingKey
Gets the profiling key to activate/deactivate profiling for the current script class.
public ProfilingKey ProfilingKey { get; }
Property Value
SceneSystem
public SceneSystem SceneSystem { get; }
Property Value
Script
public ScriptSystem Script { get; }
Property Value
Services
public IServiceRegistry Services { get; }
Property Value
SpriteAnimation
public SpriteAnimationSystem SpriteAnimation { get; }
Property Value
Streaming
Gets the streaming system.
public StreamingManager Streaming { get; }
Property Value
|
Improve this Doc
View Source
Methods
Cancel()
Called when the script's update loop is canceled.
public virtual void Cancel()
PriorityUpdated()
Internal helper function called when Priority is changed.
protected virtual void PriorityUpdated()
Extension Methods