Skip to content

Version 0.6

Choose a tag to compare

@jeandarcc jeandarcc released this 24 Sep 15:14
· 3 commits to main since this release

🧪 What's new? 9/24/24

🧪 1) GlobalDiscreteUpdateAttribute:

This code logs same frame number in same frame.

If one of them ordered with 1 (or something different) they will log different frame numbers.

public class TestCode : SchedulableBehaviour
{
    public static int frames = 0;
    [DiscreteUpdate(0)]
    void StandardUpdate()
    {
        frames++;
    }
    
    [GlobalDiscreteUpdate(0)]
    void Update1()
    {
        Debug.Log("1: " + frames);
    }
}

public class TestCode2 : SchedulableBehaviour
{
    [GlobalDiscreteUpdate(0)]
    void Update2()
    {
        Debug.Log("2: " + TestCode.frames);
    }
}

🧪 2) DiscreteFixedUpdateAttribute, GlobalDiscreteFixedUpdateAttribute and EnumerableDiscreteFixedUpdate added.

🧪 3) Bugfixes.

🧪 4) Performance optimization.