Skip to content

Instantly share code, notes, and snippets.

Estecka

Block or report user

Report or block Estecka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Estecka
Estecka / rawstring.c
Created Jan 16, 2020
Converts the first few characters of a string into an int, for easier comparison.
View rawstring.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* .stringToInt.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abaur <abaur@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/16 14:15:40 by abaur #+# #+# */
/* Updated: 2020/01/16 14:25:04 by abaur ### ########.fr */
/* */
View SubCanvasScaler.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteAlways]
[RequireComponent(typeof(RectTransform))]
public class SubCanvasScaler : MonoBehaviour {
public enum ScalingMode {
Stretch,
MatchHeight,
@Estecka
Estecka / Typewriter.cs
Created Jun 28, 2019
Write/erase a text one caracter after another.
View Typewriter.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using TMPro;
public class Typewriter : MonoBehaviour {
static readonly string format = @"{0}<alpha=#00>{1}</color>{2}";
@Estecka
Estecka / DepthMask.shader
Last active Jun 27, 2019
An invisible shader that still masks everything behind it
View DepthMask.shader
Shader "Estecka/Depth Mask" {
SubShader {
Tags { "RenderType" = "Opaque" }
Blend Zero One
Pass{}
}
}
View TimecodeAttribute.cs
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
namespace Estecka.EsteckaEditor {
[CustomPropertyDrawer(typeof(TimeCodeAttribute))]
public class TimeCodeDrawer : PropertyDrawer{
You can’t perform that action at this time.