DOTS:Data-Oriented-Tech-Stack
error CS0103: The name 'RenderPipeline' does not exist in the current context
MoreRenderPipeline.beginCameraRendering += OnPreCull;
Solution:
using UnityEngine.Rendering;
RenderPipelineManager.beginCameraRendering += OnPreCull;
}
void OnPreCull(ScriptableRenderContext context, Camera camera) => OnPreCull(camera);
error CS1061: 'EntityQuery' does not contain a definition for 'SetFilter' and no accessible extension method 'SetFilter' accepting a first argument of type 'EntityQuery' could be found (are you missing a using directive or an assembly reference?)
m_Characters.SetFilter(character);
Solution:
m_Characters.SetSharedComponentFilter(character);
error CS1501: No overload for method 'ToComponentDataArray' takes 2 arguments
JobHandle jobA, jobB;
var coords = m_Characters.ToComponentDataArray<AnimationTextureCoordinate>(Allocator.TempJob, out jobA);
var localToWorld = m_Characters.ToComponentDataArray<LocalToWorld>(Allocator.TempJob, out jobB);
JobHandle.CompleteAll(ref jobA, ref jobB);
Solution:
var coords = m_Characters.ToComponentDataArray<AnimationTextureCoordinate>(Allocator.TempJob);
var localToWorld = m_Characters.ToComponentDataArray<LocalToWorld>(Allocator.TempJob);
error CS1061: 'TimeData' does not contain a definition for 'deltaTime' and no accessible extension method 'deltaTime' accepting a first argument of type 'TimeData' could be found (are you missing a using directive or an assembly reference?)
Time.deltaTime
Solution:
UnityEngine.Time.deltaTime
perator '+' cannot be applied to operands of type 'Chunk.<Buffer>e__FixedBuffer'
MoreSolution:
If you're using .NET 4.x try to switch to .NET Standard 2.0 and reimport the DOTS Editor package