-- initialize the poollocalfunctioncreationFunc()returnCreateFrame("Frame")endlocalfunctionresetterFunc(__,frame)frame:Hide()endlocalpool=CreateObjectPool(creationFunc,resetterFunc)-- Request a framelocalframe=pool:Acquire()frame:Show()-- Return the frame when it is no longer requiredpool:Release(frame)-- Request a frame againlocalframe=pool:Acquire()-- could be a different frame if others were acquired/released in the interimframe:Show()-- cancels Hide() in resetterFunc
This page was last edited on 18 May 2021, at 01:25.
Content is available under CC BY-SA 3.0 unless otherwise noted. Game content and materials are trademarks and copyrights of their respective publisher and its licensors. All rights reserved.
This site is a part of Fandom, Inc. and is not affiliated with the game publisher.