#SystemAPI.Query. . . . .WithEntityAccess() problem, can't access Entity

1 messages · Page 1 of 1 (latest)

cerulean valley
#
Assets\Scripts\Systems\CharacterSystem.cs(68,75): error CS1061: 'QueryEnumerableWithEntity<InternalCompilerInterface.UncheckedRefRO<CharacterStats>, InternalCompilerInterface.UncheckedRefRO<CharacterInput>, InternalCompilerInterface.UncheckedRefRW<LocalTransform>, InternalCompilerInterface.UncheckedRefRW<CharacterState>>' does not contain a definition for 'Item5' and no accessible extension method 'Item5' accepting a first argument of type 'QueryEnumerableWithEntity<InternalCompilerInterface.UncheckedRefRO<CharacterStats>, InternalCompilerInterface.UncheckedRefRO<CharacterInput>, InternalCompilerInterface.UncheckedRefRW<LocalTransform>, InternalCompilerInterface.UncheckedRefRW<CharacterState>>' could be found (are you missing a using directive or an assembly reference?)

Hello, I can't seem to access the Entity while iterating over my query. Any Idea what's happening here?

hollow siren
#

you can't use tuple directly, you need to unwrap it inside foreach statement

cerulean valley
#

ah okay let me try

#

@hollow siren Thanks sir, have a good day