- SOLID;
- Single Responsibility Principle (SRP);
- Open/Closed Principle (OCP);
- Liskov Substitution Principle (LSP);
✅️ The FindIndex() method can receive a lambda function as an argument and, thus, it's possible find the first unknown element that meets a desired requirement, present in the lambda function. Example:
int brazilIndex = countries.FindIndex(x => x.Population < 220_000_000);
✅️ The Insert() method allows the insertion of an element after a desired index in the list. Example:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simplified SDF shader: | |
// - No Shading Option (bevel / bump / env map) | |
// - No Glow Option | |
// - Softness is applied on both side of the outline | |
Shader "TextMeshPro/Mobile/Distance Field Instanced" { | |
Properties { | |
_FaceColor ("Face Color", Color) = (1,1,1,1) | |
_FaceDilate ("Face Dilate", Range(-1,1)) = 0 |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class UIZoomImage : MonoBehaviour, IScrollHandler | |
{ | |
private Vector3 initialScale; | |
[SerializeField] | |
private float zoomSpeed = 0.1f; | |
[SerializeField] |
NewerOlder