Here, I shall spill my knowledge on what I have learnt in development.
This is what i want to write about so far:
Btw I was thinking about it and it might be good to sanitize the localization text's in general by doing something like:
s = s.TrimEnd('\r', '\n'); //or if using an array, use new[] {"/r/n", "/n/r", "/n", "/r"} or something.
We can't do .Replace because it means we would lose formatting in the already processed localization strings if they have any e.g. a two line string would become a one line
Avoid using comparisons, instead use approximations (refer to epsilon on google), especially applies to the audio player implementation below. You could also use decimal data type, but decimals take up more space.
I'll just copy pasta, but basically a coroutine to check if the video is ended, and change the logo back
and also this logic: REFER TO THAT ROGUE IMAGE FILE IN THIS DIRECTORY
Adjust the dilate on the font if using TMP, this increases the thickness somewhat, which should solve this issue without making it too bold like if using the bold option
Use sprite editor to edit borders for 9-slice scaling, so that corners stay consistent while the shape can stretch
So for example
Enum.GetValues(typeof(EnumFoo)).Cast<EnumFoo>().ToList();Enum.GetValues return a Array class type, which you need to cast to type before ToList();
Otherwise, if Array holds a reference type, then you can just use the shortcut ToList<Obj>() instead.
nameof is very blunt, too blunt, it returns the immediate variable name fed into it, it doesnt care about the value at all. pls.
Try application.targetframerate or smtg, it should help. On PCs, this can be set either this way, or through vsync, read more in unitydocs for deets
Use targets with an 's', instead of target. Because target refers to the current most selected singular object. Then perform your operations there
Just a sprite option that when set to null, defaults to the .sprite instead
class Bar
Bar (var varName)
class Foo : Bar
Foo (var x, var y) : base(x)-
No. cannot. bahahahhaa
-
do glob:"Assets/**/*.mp3" lmao
-
Show All, Quality set to low, removes aliasing
-
Try and make sure if there is already a function in the current implementation that you can make use of, overrides especially.
#if !(PLATFORM_ANDROID || UNITY_ANDROID) && !UNITY_EDITOR
_content.SetActive(false);
#endifNOTE TO SELF, UPLOAD GABEEXTENSIONS.cs eventually
Hi
Yea? no.
