Skip to content

Instantly share code, notes, and snippets.

@inkcomic
inkcomic / BoundingFrustum.cs
Created August 12, 2022 12:08
Bounding Frustum implementation in C# for Unity.
namespace StagPoint.Math
{
using System;
using UnityEngine;
using Mono.Simd;
public class BoundingFrustum
{
#region Public fields
@inkcomic
inkcomic / JsonSerialisableScriptableObject.cs
Created July 11, 2022 03:08 — forked from sebtoun/JsonSerialisableScriptableObject.cs
Unity's ScriptableObjects that easily serialize to JSON
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using UnityEngine;
public class JsonSerialisableScriptableObject<T> : ScriptableObject where T : JsonSerialisableScriptableObject<T>
{
@inkcomic
inkcomic / LightFlickerEffect.cs
Created March 22, 2021 21:35 — forked from sinbad/LightFlickerEffect.cs
Unity simple & fast light flicker script
using UnityEngine;
using System.Collections.Generic;
// Written by Steve Streeting 2017
// License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/
/// <summary>
/// Component which will flicker a linked light while active by changing its
/// intensity between the min and max values given. The flickering can be
/// sharp or smoothed depending on the value of the smoothing parameter.
@inkcomic
inkcomic / UsingJsonDotNetInUnity.cs
Created February 22, 2021 12:50 — forked from onionmk2/UsingJsonDotNetInUnity.cs
Json.Net ( Newtonsoft.Json ) in Unity
using System;
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
using UnityEngine;
public class UsingJsonDotNetInUnity : MonoBehaviour
{
private void Awake()
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using DG.Tweening;
public class ButtonEnlarger : MonoBehaviour {
private Button button;
@inkcomic
inkcomic / LoadingDots.cs
Created January 25, 2021 17:13 — forked from reidscarboro/LoadingDots.cs
Bouncing loading dots in Unity using DoTween
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class LoadingDots : MonoBehaviour {
//the total time of the animation
public float repeatTime = 1;
//the time for a dot to bounce up and come back down
# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag