Skip to content

Releases: liangxiegame/QFramework

v1.0.33

12 Jan 03:02
Compare
Choose a tag to compare
  • CN:LiveCodingKit 增加使用文档
  • EN:LiveCodingKit add user manual

v1.0.32

10 Jan 02:45
Compare
Choose a tag to compare
  • CN: FluentKit:增加 Sin、Cos、SinAngle、CosAngle、Deg2Rad、Rad2Deg、ToVector3 API
  • EN: FluentKit:add Sin、Cos、SinAngle、CosAngle、Deg2Rad、Rad2Deg、ToVector3 API
var cos = (90.0f * Mathf.Deg2Rad).Cos();
// cos is 0f
var sin = (90.0f * Mathf.Deg2Rad).Sin();
// sin is 1f
var cos = 90.0f.CosAngle();
// cos is 0f
var sin = 90.0f.SinAngle();
// sin is 1f
var radius = 90.0f.Deg2Rad();
// radius is 1.57f
var degree = 1.57f.Rad2Deg();
// degree is 90f
var vec3 = new Vector2(1,1).ToVector3();
// vec3 is (1,1,0)
vec3 = new Vector2(1,1).ToVector3(1);
// vec3 is (1,1,1)

v1.0.31

09 Jan 02:35
Compare
Choose a tag to compare
  • CN: FluentKit 增加 Abs、Sign、Lerp、LocalScaleX、Y、Z
  • EN: FluentKit add Abs、Sign、Lerp、LocalScaleX、Y、Z
var scaleX = gameObj.LocalScaleX();
scaleX = component.LocalScaleX();

var scaleY = gameObject.LocalScaleY();
scaleY = component.LocalScaleY();

var scaleZ = gameObj.LocalScaleZ();
scaleZ = component.LocalScaleZ();

var result = -1.0f.Abs(); // result is 1.0f

result = 0.5f.Lerp(0.1f,0.5f); // result is 0.3f

result = -5.0f.Sign(); // result is -1.0f

v1.0.30

05 Jan 02:19
Compare
Choose a tag to compare
  • CN:Bind 可以搜索隐藏的 GameObject & Bind 增加 UnityEditor 条件编译
  • EN:Bind can search inactive GameObject & Bind add UnityEditor condition compile

v1.0.29

03 Jan 05:38
Compare
Choose a tag to compare
  • CN:增加 GridKit 的 API 文档 和 使用教程
  • EN:add GridKit' API document and user manual
using UnityEngine;

namespace QFramework.Example
{
    public class GridKitExample : MonoBehaviour
    {
        // Start is called before the first frame update
        void Start()
        {
            var grid = new EasyGrid<string>(4, 4);

            grid.Fill("Empty");
            
            grid[2, 3] = "Hello";

            grid.ForEach((x, y, content) => Debug.Log($"({x},{y}):{content})");

            grid.Clear();
        }
    }
}
 
// (0,0):Empty
// (0,1):Empty
// (0,2):Empty
// (0,3):Empty
// (1,0):Empty
// (1,1):Empty
// (1,2):Empty
// (1,3):Empty
// (2,0):Empty
// (2,1):Empty
// (2,2):Empty
// (2,3):Hello
// (3,0):Empty
// (3,1):Empty
// (3,2):Empty
// (3,3):Empty

v1.0.28

02 Jan 01:52
Compare
Choose a tag to compare
  • CN:增加 RandomUtility.Choose API
  • EN:Add RandomUtility.Choose API

v1.0.27

31 Dec 05:15
Compare
Choose a tag to compare
  • CN:FluentKit 增加 SpriteRenderer 的 Alpha 设置 API
  • EN:FluentKit Add SpriteRenderer's Alpha set API

v1.0.26

30 Dec 03:31
Compare
Choose a tag to compare
  • CN:v1.0.26 FSM 增加 FrameCountOfCurrentState API
  • EN:v1.0.26 FSM add FrameCountOfCurrentState API

v1.0.25

19 Dec 06:44
Compare
Choose a tag to compare
  • CN:UnRegisterWhenGameObjectDestoryed 支持 Component 的 API 迁移到 QFramework.cs
  • EN:UnRegisterWhenGameObjectDestoryed support Component's API move into QFramework.cs

v1.0.24

19 Dec 06:30
Compare
Choose a tag to compare
  • CN:EventKit 增加 Component 版本的 UnRegisterWhenGameObjectDestroy API
  • EN:EventKit add Component version's UnRegisterWhenGameObjectDestroy API