OxGFrame Versions Save

The OxGFrame is a framework based on Unity for accelerating game development. Supports multi-platform Win, OSX, Android, iOS, WebGL.

v2.9.16

3 months ago

[2.9.16] - 2024-02-20

  • Updated YooAsset commits.
  • Added InitPackage in AssetPatcher.
    /// <summary>
    /// Init package by type
    /// </summary>
    /// <param name="packageInfo"></param>
    /// <param name="autoUpdate"></param>
    /// <returns></returns>
    public static async UniTask<bool> InitPackage(PackageInfoWithBuild packageInfo, bool autoUpdate = false)
  • Modified PackageOperation initialize procedure by manual.
public class PackageOperation
{
    /// <summary>
    /// Ready operation for initialize (after events added)
    /// </summary>
    public void Ready()
}
  • Modified BundleDLCDemo sample. image

  • Modified SetDefaultPackage determine.

  • Removed unuse samples from DiskUtils.

v2.9.15

3 months ago

[2.9.15] - 2024-02-19

  • Updated UniTask to v2.5.3.
  • Added DriveUpdate methods in CPBase (can call update by other PlayerLoop).
    public void DriveUpdate(float dt) => this.HandleUpdate(dt);
    public void DriveFixedUpdate(float dt) => this.HandleFixedUpdate(dt);
    public void DriveLateUpdate(float dt) => this.HandleLateUpdate(dt);

v2.9.14

3 months ago

[2.9.14] - 2024-02-02

  • Modified PackageOperation user callback events, can reference itself in callback.
public class PackageOperation
{
    public delegate void OnPatchRepairFailed(PackageOperation itself);
    public delegate void OnPatchInitPatchModeFailed(PackageOperation itself);
    public delegate void OnPatchVersionUpdateFailed(PackageOperation itself);
    public delegate void OnPatchManifestUpdateFailed(PackageOperation itself);
    public delegate void OnPatchCheckDiskNotEnoughSpace(PackageOperation itself, int availableMegabytes, ulong patchTotalBytes);
    public delegate void OnPatchDownloadFailed(PackageOperation itself, string fileName, string error);
}

checkout v2.9.13

v2.9.13

4 months ago

[2.9.13] - 2024-02-01

  • Updated yooasset to v2.1.1.
  • Added DiskUtils by keerthik third party in AssetLoader module (not supported WebGL).
  • Added Check available disk space in patch and package download step (not supported WebGL).
    • Must add PatchEvents.PatchCheckDiskNotEnoughSpace in patchEvents to handle it (checkout BundleDemo).

image

image

  • Added CheckDiskSpace flag setting on PatchLauncher inspector.

image

  • Added Can set user event handler to PackageOperation.
public class PackageOperation
{
    /// <summary>
    /// Enable or disable disk space check procedure (default is true)
    /// </summary>
    public bool checkDiskSpace = true;

    public OnPatchRepairFailed onPatchRepairFailed;
    public OnPatchInitPatchModeFailed onPatchInitPatchModeFailed;
    public OnPatchVersionUpdateFailed onPatchVersionUpdateFailed;
    public OnPatchManifestUpdateFailed onPatchManifestUpdateFailed;
    public OnPatchCheckDiskNotEnoughSpace onPatchCheckDiskNotEnoughSpace;
    public OnPatchDownloadFailed onPatchDownloadFailed;
    
    public void UserTryPatchRepair()
    public void UserTryInitPatchMode()
    public void UserTryPatchVersionUpdate()
    public void UserTryPatchManifestUpdate()
    public void UserTryCreateDownloader()
}
  • Modified UIBase method name #1adf602 (Replace all below).
method ShowAnime => ShowAnimation

method HideAnime => HideAnimation

delegate AnimeEndCb => AnimationEnd

param animeEndCb => animationEnd

Replace all in Visual Studio

image

image

image

v2.9.12

4 months ago

[2.9.12] - 2024-01-16

  • Added CoreFrames.UIFrame.GetStackByStackCount method.
    public static int GetStackByStackCount(string canvasName)
    
    public static int GetStackByStackCount(int groupId, string canvasName)

How to use it

    if (Keyboard.current.escapeKey.wasReleasedThisFrame)
    {
        if (CoreFrames.UIFrame.GetStackByStackCount(groupId, canvasName) > 0)
        {
            CoreFrames.UIFrame.CloseStackByStack(groupId, canvasName);
        }
        else
        {
            Debug.Log("Open Esc Menu!!!");
        }
    }
  • Modified UI NodeType name (the original settings will not be changed).
    public enum NodeType
    {
        Fixed,        // Normal => Fixed
        TopFixed,     // Fixed => TopFixed
        Popup,        // Same
        TopPopup,     // Same
        LoadingPopup, // Same
        SysPopup,     // Same
        TopSysPopup,  // Same
        AwaitingPopup // Same
    }

v2.9.11

4 months ago

[2.9.11] - 2024-01-09

  • Optimized NetFrame.
  • Added TcpNetOption.
  • Added WebsocketNetOption.
  • Modified NetOption.
  • Modified SetResponseHandler to SetResponseBinaryHandler and SetResponseMessageHandler.
  • Modified typo SetOutReciveAction to SetOutReceiveAction.
  • Renamed TcpSock to TcpNetProvider.
  • Renamed WebSock to WebsocketNetProvider.
  • Renamed method CloseSocket to Close.
  • Renamed ISocket to INetProvider.

v2.9.10

5 months ago

[2.9.10] - 2023-12-28

  • Updated YooAsset to v2.1.0 (CHANGELOG).
  • Organized coding style (Wiki).

v2.9.9

5 months ago

Must update

[2.9.9] - 2023-12-18

  • Added PackageOperation feature, can download packages more easier (please checkout BundleDLC Demo).
    // Factory Mode
    public static PackageOperation CreateOperation(string groupName, PackageInfoWithBuild packageInfo, bool skipDownload = false)
    public static PackageOperation CreateOperation(string groupName, PackageInfoWithBuild[] packageInfos, bool skipDownload = false)

    // Use Example
    var packageOperations = new PackageOperation[]
    {
        new PackageOperation
        (
            "DLC Package 1",
            new DlcPackageInfoWithBuild()
            {
                buildMode = BuildMode.ScriptableBuildPipeline,
                packageName = "Dlc1Package",
                dlcVersion = "latest"
            },
            false
        ),
        new PackageOperation
        (
            "DLC Pacakge 2",
            new DlcPackageInfoWithBuild()
            {
                buildMode = BuildMode.ScriptableBuildPipeline,
                packageName = "Dlc2Package",
                dlcVersion = "latest"
            },
            false
        )
    };
  • Added BundleDLCDemo for operate PackageOperation.
  • Modified params to PackageInfoWithBuild.
    public abstract class PackageInfoWithBuild
    {
        [Tooltip("Only for EditorSimulateMode")]
        public BuildMode buildMode;
        public string packageName;
        
        /// <summary>
        /// Custom host server
        /// </summary>
        [HideInInspector]
        public string hostServer = null;
        /// <summary>
        /// Custom fallback host server
        /// </summary>
        [HideInInspector]
        public string fallbackHostServer = null;
        public IBuildinQueryServices builtinQueryService = null;
        public IDeliveryQueryServices deliveryQueryService = null;
        public IDeliveryLoadServices deliveryLoadService = null;
    }
  • Removed method InitCustomPackage from AssetPatcher.

v2.9.8

5 months ago

[2.9.8] - 2023-12-08

  • Added Generate binding code rule (MethodType: Manual, Auto, default is Auto).
    #region Binding Components
    protected Image _bgImg;
    protected Text _msgTxt;
    
    /// <summary>
    /// Auto Binding Section
    /// </summary>
    protected override void OnAutoBind()
    {
        base.OnAutoBind();
        this._bgImg = this.collector.GetNodeComponent<Image>("Bg*Img");
        this._msgTxt = this.collector.GetNodeComponent<Text>("Msg*Txt");
    }
    #endregion

v2.9.7

5 months ago

[2.9.7] - 2023-12-07

  • Modified repair procedure (Supports patch repair during download).
  • Modified BundleDemo in Samples.
  • Fixed AssetPatcher flags bug issue (IsCheck(), IsRepair(), IsDone()).