Search Unity

Resolved MonoBehaviors and NativeArrays, Further Low Level API?

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by Kmsxkuse, Dec 8, 2022.

  1. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    306
    Has there been any plans to expose more of the engine locked monobehavior backing data as readonly NativeArray C# accessible API?

    One key object I hope to access is the tilemap's tile layout. Instead of calling a costly GetTile(x,y) over and over again, I wish to access the (what I think is) base integer representation of the tilemap for rapid burst accelerated comparison of tiles.
     
  2. jivalenzuela

    jivalenzuela

    Unity Technologies

    Joined:
    Dec 4, 2019
    Posts:
    76
    Are you talking about TileAsset?

    We have longer term plans on how to expose UnityEngine internals more robustly but there are still details to be worked out, I wouldn't anticipate anything in the next year.
     
    Kmsxkuse likes this.
  3. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    306
    Yea but a blittable representation. I'm looking forward to how those internals get exposed in public APIs in a few years...