- Đã chỉnh sửa
[Lua/Love2D] Region Attachments not working
Error: spine-lua/attachments/RegionAttachment.lua:137: attempt to index field 'region' (a nil value)
For some inexplicable reason, the constructor for RegionAttachment sets region to nil, which is causing the error. I checked and the old version of RegionAttachment.lua set default values for the region's original values. I'm not sure how best to fix this.
Obviously the sample code works because it uses AtlasAttachmentLoader, which sets the region value for RegionAttachment. Should we consider non-atlas loading officially deprecated, or is this a genuine bug?
Yes, non-atlas loading is officially deprecated. You can still provide your own AttachmentLoader implementation though.