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 System; | |
using UnityEngine; | |
using UnityEngine.Serialization; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class RopeGenerator : MonoBehaviour | |
{ | |
public Rigidbody attachementBody; |
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
// Staggart Creations | |
// http://staggart.xyz | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class HeightmapToMesh : MonoBehaviour | |
{ | |
public MeshFilter meshFilter; | |
public Texture2D heightmap; |
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
# Starter pipeline | |
# Start with a minimal pipeline that you can customize to build and deploy your code. | |
# Add steps that build, run tests, deploy, and more: | |
# https://aka.ms/yaml | |
trigger: | |
- master | |
pool: | |
vmImage: 'windows-2019' |
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
/// For this to work you need to copy these 2 files: | |
/// "YOUR UNITY LOCATION"\Editor\Data\Mono\lib\mono\X.X\System.Drawing.dll | |
/// "YOUR UNITY LOCATION"\Editor\Data\Mono\lib\mono\X.X\System.Windows.Forms.dll | |
/// ..to a "Plugins" folder within your project | |
/// | |
/// For this example to work, you need to have a (UI) Canvas object in your scene | |
/// Put this script on any object | |
/// | |
/// Tested on windows, not sure if it works on any other platform | |
/// |
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.UI; | |
namespace QuantumCalzone | |
{ | |
[AddComponentMenu("Layout/Extended/Layout Element Extended")] | |
[RequireComponent(typeof(RectTransform))] | |
public class LayoutElementExtended : LayoutElement | |
{ | |
public LayoutElementExtendedValue MinWidthExtended = new LayoutElementExtendedValue(); |
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
Shader "Custom/Flow Map" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
// Flow | |
_FlowMap ("Flow Map", 2D) = "white" {} | |
_FlowSpeed ("Flow Speed", float) = 0.05 |