Skip to content

Instantly share code, notes, and snippets.

View Softdrink117's full-sized avatar

Tobias Heinemann Softdrink117

View GitHub Profile
@Softdrink117
Softdrink117 / MeshGraphic.cs
Last active April 7, 2020 19:38
An extension of UnityEngine.UI.MaskableGraphic that allows for the drawing of arbitrary meshes
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Softdrink
{
// Adapted from https://www.hallgrimgames.com/blog/2018/11/25/custom-unity-ui-meshes
// with significant modifications to account for arbitrary meshes and UVs
@Softdrink117
Softdrink117 / DefaultGistLicense.md
Created February 1, 2020 23:42
Default Gist License

Unless otherwise specified, all gists abide by the following license:

MIT License

Copyright (c) 2020 Tobias Heinemann

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell