Vai ai contenuti
File multimediali per l'articolo FindRefForMap: 1

Descrizione

Find Reference For Blueprint Map

Add Find(a ref) function for Maps in Blueprints - Eliminate data copying! Boost performance and simplify operations!

Core Features

Find (Key) → Value Ref + Index
  • Retrieve references: Obtain the memory reference of Value via Key instead of a copied value

  • Dual data return: also return the Index to enable fast deletion

Remove by Index
  • Skip redundant lookups: Delete entries directly using the obtained Index

Technical Specifications
  • Open-source code with complete K2Node implementation

Use Cases
  • When Map values are complex custom structs, using Find (a ref) avoids returning copies (improves performance) while allowing direct modification of the original Map value - eliminating redundant "modify-then-reinsert" nodes for better readability.

FAQ

Q: Supports other engine versions?

A: Pre-compiled version only works with UE5.4+, but full source code is included for adaptation to any version.

=========================================================================================

Find Reference For Blueprint Map

在蓝图中为map添加引用版查询,告别数据拷贝!提升性能,简化操作!

核心功能

Find (Key) → Value Ref + Index
  • 查询引用:通过Key获取Value的**内存引用**,而非副本拷贝

  • 双数据返回:同时获取对应的Index,为快速删除奠定基础

Remove by Index 快速删除
  • 跳过二次查询:利用已获得的Index直接删除条目

技术规格

  • 源码开放,包含完整K2Node实现

适用场景

  • 当map的value是一些复杂的自定义结构体时,使用 Find (a ref) 可以避免返回拷贝,提升性能。同时又能对其直接操作,相当于直接修改该map中对应的value,免去修改后还要插回的多余节点,提升可读性。

常见问题

Q:支持引擎其他版本吗?

A:预编译版本仅限UE5.4+,但插件包含完整的源码,可自行编译适配至任意版本。

Formati inclusi