Releases: liangxiegame/QFramework
Releases · liangxiegame/QFramework
v1.0.33
- CN:LiveCodingKit 增加使用文档
- EN:LiveCodingKit add user manual
v1.0.32
- 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
- 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
- CN:Bind 可以搜索隐藏的 GameObject & Bind 增加 UnityEditor 条件编译
- EN:Bind can search inactive GameObject & Bind add UnityEditor condition compile
v1.0.29
- 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
- CN:增加 RandomUtility.Choose API
- EN:Add RandomUtility.Choose API
v1.0.27
- CN:FluentKit 增加 SpriteRenderer 的 Alpha 设置 API
- EN:FluentKit Add SpriteRenderer's Alpha set API
v1.0.26
- CN:v1.0.26 FSM 增加 FrameCountOfCurrentState API
- EN:v1.0.26 FSM add FrameCountOfCurrentState API
v1.0.25
- CN:UnRegisterWhenGameObjectDestoryed 支持 Component 的 API 迁移到 QFramework.cs
- EN:UnRegisterWhenGameObjectDestoryed support Component's API move into QFramework.cs
v1.0.24
- CN:EventKit 增加 Component 版本的 UnRegisterWhenGameObjectDestroy API
- EN:EventKit add Component version's UnRegisterWhenGameObjectDestroy API