Skip to content

Release v2.10.1

Compare
Choose a tag to compare
@michael811125 michael811125 released this 13 Mar 20:31
· 54 commits to master since this release

[2.10.1] - 2024-03-14

  • Fixed AudioBase and VideoBase to avoid executing Stop again in OnDestroy if they are being destroyed.
  • Added MediaLRUCache to handle least recently used audio or video will be removed (Optimize memory).
  • Added binding access modifier rules in BindCodeSetting, split by "$".
    • _Node@MyObj*Txt$public (UIBase, SRBase).
    • ~Node@MyObj*Txt$public (CPBase).
// Default is protected, no set required (depends on the first element in BindCodeSetting)
UIBase, SRBase:
_Node@MyObj*Txt
CPBase:
~Node@MyObj*Txt

// Assign access modifier
UIBase, SRBase:
_Node@MyObj*Txt$public
_Node@MyObj*Txt$private
CPBase:
~Node@MyObj*Txt$public
~Node@MyObj*Txt$private
  • Added binding attr rules in BindCodeSetting, pattern is "[]" (supported multi-attrs [][]...).
    • _Node@MyObj*Txt$public[hi] (UIBase, SRBase).
    • ~Node@MyObj*Txt$public[hi] (CPBase).
[hi] = [HideInInspector]
UIBase, SRBase:
_Node@MyObj*Txt$public[hi]
CPBase:
~Node@MyObj*Txt$public[hi]

[sf] = [SerializeField]
UIBase, SRBase:
_Node@MyObj*Txt[sf]
CPBase:
~Node@MyObj*Txt[sf]
img_19
  • Modified UIFrameDemo.
  • Modified SRFrameDemo.
  • Modified CPFrameDemo.