Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[BlobAssetReference] Can't Invoke BlobBuilder.Allocate use reflection!?

Discussion in 'Entity Component System' started by lijianfeng, Aug 29, 2019.

  1. lijianfeng

    lijianfeng

    Joined:
    Sep 8, 2015
    Posts:
    54
    When I call BlobBuilder.Allocate use reflection, parameters are pass by convert to object,which is implement by copy,so the following error happen:

    The BlobArray passed to Allocate was not allocated by this BlobBuilder or the struct that embeds it was copied by value instead of by ref

    Does that mean I can not call BlobBuilder.Allocate by reflection?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Correct you can;'t use BlobBuilder from reflection...