종잇장
'particle' 태그의 글 목록

particle

Study Log

Unity ECS Study Log - 8

[BurstCompile] public partial struct ProcessDestroyBulletJob : IJobEntity { public EntityCommandBuffer.ParallelWriter ecb; private void Execute([ChunkIndexInQuery] int chunkIndex, Entity entity, in BulletComponent bullet, in LocalTransform transform) { if (bullet.isDestroyed == true) { if (bullet.HitEffect != Entity.Null) { var hitEffectEntity = ecb.Instantiate(chunkIndex, bullet.HitEffect); ecb..