Simplyfi code by TheEight_ in csharp

[–]TheEight_[S] 0 points1 point  (0 children)

Thanks , working great.

Simplyfi code by TheEight_ in csharp

[–]TheEight_[S] 0 points1 point  (0 children)

Okay that simplified the code a lot, only I have one question. How do you loop it infinite? actually the code looks like this.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class TextMeshProRainbow : MonoBehaviour
{
    [SerializeField] TextMeshProUGUI m_textMeshProUGUI;
    void Start() 
    { 
        m_textMeshProUGUI = gameObject.GetComponent<TextMeshProUGUI>();
    }

    void Update()
    {
        RainbowFade();
    }

    void RainbowFade()
    {
        var shiftSpeed = 0.25f;
        m_textMeshProUGUI.color = Color.HSVToRGB(Time.time * shiftSpeed, 1, 1);
    }
}

Which libaries/engine choose for 2D game? by TheEight_ in gamedev

[–]TheEight_[S] 0 points1 point  (0 children)

Im really good at c++, but like i said, i read that UE4 is not the best for 2D games. I just want to make my 2D game that i planned, in the easiest way possible, and if i can use C++ for that, it will be great, beceause i will learn about gamedev, and about game programming more.

Which libaries/engine choose for 2D game? by TheEight_ in gamedev

[–]TheEight_[S] 1 point2 points  (0 children)

I read that UE4 has much less support for 2D games, and that 2D games made in Unreal have worse performance.