๐ŸŽฎUnity

[Unity] ์‹ค์Šต_Property, Memory, Hacks

taesooya 2022. 7. 31. 23:49

property

๋ณ€์ˆ˜์ฒ˜๋Ÿผ ์“ธ ์ˆ˜ ์žˆ๋Š” ํ•จ์ˆ˜

    public int GetScore()
    {
        return score;
    }
    public void SetScore(int value)
    {
        score = value;
    }
public int SCORE
    {
        get { return score; }
        set
        {
            score = value;
            textScore.text = "Score : " + score;
        }

    }

 

Singleton

public static ScoreManager instance;

 

Memory

  • ์ฝ”๋“œ์˜์—ญ
  • ๋ฐ์ดํ„ฐ Data
    • ์ „์—ญ๋ณ€์ˆ˜Global
    • ์ •์ ๋ณ€์ˆ˜Static
  • ํž™ Heap
    • Instantiate / new
  • ์Šคํƒ Stack
    • ์ง€์—ญ๋ณ€์ˆ˜

 

Etc

Canvas → Text → BestFit Text - 8 / 9 ๋„ˆ๋น„ ๋„“์€ ํ…์ŠคํŠธ๋กœ ๋ฐฐ์น˜ํ•˜์—ฌ ํ…Œ์ŠคํŠธHacks
๐Ÿ’ก #region #edregion
๐Ÿ’ก Right Click → Find reference in Scene

 

Shader

ShadersLab

Home

 

Home

All the shaders of this website are totally free-to-use. Feel free to use them in any project without any credits. These shaders are mainly an archive of the tests I've done to learn how to make shaders in Unity. But be careful, most of these are not ready

shaderslab.com