(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.
| // Non Editor code | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public abstract class TrafficLightAttribute : PropertyAttribute | |
| { | |
| public bool DrawLabel = true; | |
| public string CustomLabel; | |
| public bool AlsoDrawDefault; |
(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.
| #if CSHARP_7_OR_LATER | |
| #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member | |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.AddressableAssets; | |
| using UnityEngine.ResourceManagement.ResourceLocations; | |
| using UnityEngine.ResourceManagement.ResourceProviders; | |
| using UnityEngine.SceneManagement; |
| #!/bin/bash | |
| # store the current dir | |
| CUR_DIR=$(pwd) | |
| # Let the person running the script know what's going on. | |
| echo "Pulling in latest changes for all repositories..." | |
| # Find all git repositories and update it to the master latest revision | |
| for i in $(find . -name ".git" | cut -c 3-); do |
| /* | |
| * Created by C.J. Kimberlin | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2019 | |
| * | |
| * 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 |
| using Unity.Collections; | |
| using Unity.Collections.LowLevel.Unsafe; | |
| using Unity.Mathematics; | |
| using UnityEngine; | |
| public class NativeMeshTest : MonoBehaviour | |
| { | |
| private NativeArray<float3> vertexBuffer; | |
| private Vector3[] vertexArray; |
To add an entry in the Windows Explorer context menu to open Cmder
in a specific directory, paste this into a OpenCmderHere.reg file
and double-click to install it.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Icon"="C:\\Program Files\\cmder\\Cmder.exe,0"
| <linker> | |
| <assembly fullname="System"> | |
| <type fullname="System.ComponentModel.TypeConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.ArrayConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.BaseNumberConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.BooleanConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.ByteConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.CharConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.CollectionConverter" preserve="all"/> | |
| <type fullname="System.ComponentModel.ComponentConverter" preserve="all"/> |
| using UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.CompilerServices; | |
| using CanTarget = And<And<InRange, IsAlive>, LineOfSight>; | |
| // ---------- Domain ---------- | |
| class Health : MonoBehaviour { | |
| public int hp = 10; |