Struct VehicleControlSystem.VehicleEngineControlJob
Controls engine starting and stopping, based on the state of EngineStartStop.
To start or stop the engine, enable the EngineStartStop component and set the
value of the Start field to the desired engine running state.
Assembly: com.unity.vehicles.dll
Syntax
[BurstCompile]
[WithAll(new Type[] { typeof(Simulate) })]
[WithAll(new Type[] { typeof(EngineStartStop) })]
public struct VehicleControlSystem.VehicleEngineControlJob : IJobEntity, IJobChunk
Fields
EngineControlLookup
Declaration
public ComponentLookup<EngineStartStop> EngineControlLookup
Field Value
Methods
Execute(in ArchetypeChunk, int, bool, in v128)
Declaration
public void Execute(in ArchetypeChunk chunk, int chunkIndexInQuery, bool useEnabledMask, in v128 chunkEnabledMask)
Parameters
Run()
Declaration
Run(EntityQuery)
Declaration
public void Run(EntityQuery query)
Parameters
RunByRef()
Declaration
RunByRef(EntityQuery)
Declaration
public void RunByRef(EntityQuery query)
Parameters
Schedule()
Declaration
Schedule(EntityQuery)
Declaration
public void Schedule(EntityQuery query)
Parameters
Schedule(EntityQuery, JobHandle)
Declaration
public JobHandle Schedule(EntityQuery query, JobHandle dependsOn)
Parameters
Returns
Schedule(JobHandle)
Declaration
public JobHandle Schedule(JobHandle dependsOn)
Parameters
Returns
ScheduleByRef()
Declaration
public void ScheduleByRef()
ScheduleByRef(EntityQuery)
Declaration
public void ScheduleByRef(EntityQuery query)
Parameters
ScheduleByRef(EntityQuery, JobHandle)
Declaration
public JobHandle ScheduleByRef(EntityQuery query, JobHandle dependsOn)
Parameters
Returns
ScheduleByRef(JobHandle)
Declaration
public JobHandle ScheduleByRef(JobHandle dependsOn)
Parameters
Returns
ScheduleParallel()
Declaration
public void ScheduleParallel()
ScheduleParallel(EntityQuery)
Declaration
public void ScheduleParallel(EntityQuery query)
Parameters
ScheduleParallel(EntityQuery, JobHandle)
Declaration
public JobHandle ScheduleParallel(EntityQuery query, JobHandle dependsOn)
Parameters
Returns
ScheduleParallel(EntityQuery, JobHandle, NativeArray<int>)
Declaration
public JobHandle ScheduleParallel(EntityQuery query, JobHandle dependsOn, NativeArray<int> chunkBaseEntityIndices)
Parameters
Returns
ScheduleParallel(JobHandle)
Declaration
public JobHandle ScheduleParallel(JobHandle dependsOn)
Parameters
Returns
ScheduleParallelByRef()
Declaration
public void ScheduleParallelByRef()
ScheduleParallelByRef(EntityQuery)
Declaration
public void ScheduleParallelByRef(EntityQuery query)
Parameters
ScheduleParallelByRef(EntityQuery, JobHandle)
Declaration
public JobHandle ScheduleParallelByRef(EntityQuery query, JobHandle dependsOn)
Parameters
Returns
ScheduleParallelByRef(EntityQuery, JobHandle, NativeArray<int>)
Declaration
public JobHandle ScheduleParallelByRef(EntityQuery query, JobHandle dependsOn, NativeArray<int> chunkBaseEntityIndices)
Parameters
Returns
ScheduleParallelByRef(JobHandle)
Declaration
public JobHandle ScheduleParallelByRef(JobHandle dependsOn)
Parameters
Returns
Implements