(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
* Copyright (c) 2013 Calvin Rien | |
* | |
* Based on the JSON parser by Patrick van Bergen | |
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
* | |
* Simplified it so that it doesn't throw exceptions | |
* and can be used in Unity iPhone with maximum code stripping. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class UIZoomImage : MonoBehaviour, IScrollHandler | |
{ | |
private Vector3 initialScale; | |
[SerializeField] | |
private float zoomSpeed = 0.1f; | |
[SerializeField] |
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
// 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 |
✅️ 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: