Search Unity

BlobArray<T> cannot be properly passed to a function.

Discussion in 'Entity Component System' started by recursive, Jul 2, 2019.

  1. recursive

    recursive

    Joined:
    Jul 12, 2012
    Posts:
    669
    Hey all,
    As a heads up, there seems to be an issue with passing a BlobArray<T> structure to another function. Since it's just offsets into the structs it's a part of, passing it to a function either by ref or by value invalidates the pointer.

    Is there any plans to make this work or provide wrappers for the actual array data beyond GetUnsafePtr()?

    If this is a bug/aliasing problem and BlobArray<T> should be valid to pass to a function, I've filed it as #1166780.
     
    GilCat likes this.