Skip to content

v1.0.31

Compare
Choose a tag to compare
@liangxiegame liangxiegame released this 09 Jan 02:35
· 88 commits to master since this release
  • 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