Skip to content

v1.0.131

Compare
Choose a tag to compare
@liangxiegame liangxiegame released this 08 May 08:56
· 30 commits to master since this release
  • [CN] BindableProperty 统一使用 EasyEvent 删除掉 BindablePropertyUnRegister
  • [CN] LocaleKit: LocaleText 预览失效修复
  • [CN] ActionKit 增加 Task Action
  • [CN] AudioKit.PlaySound 支持 ActionKit(已包含示例、文档)
  • [CN] LocaleKit 获取当前语言时确保初始化
  • [CN] 增加 OnDeselectUnityEvent 组件
  • [CN] 增加 OnSelectUnityEvent 组件
  • [CN] PlatformCheck 增加 OSX 平台的判断
  • [CN] 修复 LocalPosition2D y 值错误的问题(感谢群友 shen 提供反馈)
  • [CN] CodeGenKit:OtherBinds 引用自身组件则命名为 SelfXXX
  • [CN] AudioKit:PlaySoundMode 支持文件模式的 PlaySound
  • [CN] GridKit:增加 DynaGrid 支持动态宽高(已包含示例、文档)
using UnityEngine;

namespace QFramework.Example
{
    public class DynaGridExample : MonoBehaviour
    {
        public class MyData
        {
            public string Key;
        }

        void Start()
        {
            var dynaGrid = new DynaGrid<MyData>();
            dynaGrid[1, 1] = new MyData() { Key = ""Hero"" };
            dynaGrid[-1, -10] = new MyData() { Key = ""Enemy"" };

            dynaGrid.ForEach((x, y, data) => { Debug.Log($""{x} {y} {data.Key}""); });
        }
    }
}
// 1 1 Hero
// -1 -10 Enemy
  • [CN] FluentAPI: 增加 ToAngle 和 AngleToDirection2D
  • [CN] CodeGenKit:ViewController 的父类设置(已包含文档)
namespace QFramework.Gungeon
{
    [ViewControllerChild]
    public abstract class PowerUp : ViewController
    {
        
    }
}

img.png

本次更新由 QFramework 教程年会员 赞助,
感谢各位支持
QFramework 教程年会员地址:(https://www.gamepixedu.com/goods/show/55)[https://www.gamepixedu.com/goods/show/55]

  • [EN] using EasyEvent deleted BindablePropertyUnRegister BindableProperty unity
  • [EN] LocaleKit: LocaleText preview failure repair
  • [EN] Added Task Action in ActionKit
  • [EN] AudioKit.PlaySound supports ActionKit (includes examples, documentation)
  • [EN] LocaleKit ensures initialization when getting the current language
  • [EN] Added OnDeselectUnityEvent component
  • [EN] Added the OnSelectUnityEvent component
  • [EN] PlatformCheck adds OSX platform judgment
  • [EN] Fix LocalPosition2D y value error issue (thanks to shen for feedback)
  • [EN] CodeGenKit: OtherBinds Binds the component that references itself is named SelfXXX
  • [EN] AudioKit:PlaySoundMode supports PlaySound in file mode
  • [EN] GridKit: Added DynaGrid support for dynamic width and height (includes examples, documentation)
  • [EN] FluentAPI: Added ToAngle and AngleToDirection2D
  • [EN] CodeGenKit: Parent class Settings for ViewController (documentation included)