One Minute in Unity - ECS - Aspect

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 5

  • @lemetamax
    @lemetamax ปีที่แล้ว +1

    I've been making a DOTS game every weekend so that I can master the ECS workflow. And it is going great so far.
    I know and have used things like IConponentData, IEnableableData, bakers, ISystem, System base, IJobEntity, command buffers, Collision events, PhysicsVelocity, LocalTransform, EntityQuery, SystemAPI...
    I've heard of IAspect but I never really know when or why I need to use it.

    • @TaleForgeStudio
      @TaleForgeStudio  ปีที่แล้ว +1

      I'm glad you found the material helpful, and I'm keeping my fingers crossed that you'll release a cool game using ECS! ❤️

    • @lemetamax
      @lemetamax ปีที่แล้ว

      @@TaleForgeStudio Thanks!

  • @hoangtongvu9952
    @hoangtongvu9952 10 หลายเดือนก่อน

    aspect is not good enough, component in RefRO or RW can't be viewed in Aspect tab in Entity inspector, so currently it's function only for fast, simple query, not monitoring data

    • @TaleForgeStudio
      @TaleForgeStudio  10 หลายเดือนก่อน +1

      I checked it out and yes:
      - giving public makes the Component visible, but you can't highlight its data - instead, there is information about what components the aspect has - however, we don't want to expose direct public access to the RefRO/RefRW field
      - giving [SerializeField] also makes the RefRW/RefRO field visible, this is quite an unusual action, you have to admit
      So far, I have not been able to find a way to preview the fields of the Components from the Aspects tab. However, you can use the Components tab and find the IComponentData of interest there.