Mathf.Repeat()

作者:追风剑情 发布于:2017-5-11 14:27 分类:Unity3d

public static float Repeat(float t, float length);

此方法相当于取模(t%length)

 for (int i = -6; i <= 6; i++ )
            Debug.Log(Mathf.Repeat(i, 3f));

运行测试

1111.png

标签: Unity3d

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号