All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
<NotepadPlus> | |
<UserLang name="Apache" ext="conf htaccess"> | |
<Settings> | |
<Global caseIgnored="no" /> | |
<TreatAsSymbol comment="no" commentLine="yes" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">"00"00</Keywords> | |
<Keywords name="Folder+"><Directory <DirectoryMatch <Files <FilesMatch <IfDefine <IfModule <IfVersion <Limit <LimitExcept <Location <LocationMatch <Proxy <ProxyMatch <VirtualHost</Keywords> |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using Unity.Collections.LowLevel.Unsafe; | |
using UnityEditor; | |
using UnityEditor.IMGUI.Controls; | |
using UnityEngine; | |
using Unity.Entities; |
using UnityEngine; | |
/// <summary> | |
/// Keeps constant camera width instead of height, works for both Orthographic & Perspective cameras | |
/// Made for tutorial https://youtu.be/0cmxFjP375Y | |
/// </summary> | |
public class CameraConstantWidth : MonoBehaviour | |
{ | |
public Vector2 DefaultResolution = new Vector2(720, 1280); | |
[Range(0f, 1f)] public float WidthOrHeight = 0; |
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class BuildAutomation { | |
public struct BuildTargetAndGroup { | |
public BuildTargetGroup group; | |
public BuildTarget target; |
1) Generate a private key and certificate signing request: | |
openssl genrsa -out ios_distribution.key 2048 | |
openssl req -new -key ios_distribution.key -out ios_distribution.csr -subj '/emailAddress=me@example.com, CN=Example, C=US' | |
2) Upload CSR to apple at: https://developer.apple.com/account/ios/certificate/create | |
- choose Production -> App Store and Ad Hoc | |
3) Download the resulting ios_distribution.cer, and convert it to .pem format: |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.IO; | |
public static class UnityUtil | |
{ | |
public static string GetSelectedPathOrFallback() | |
{ | |
string path = "Assets"; |
// MIT License - Copyright (c) 2016 Can Güney Aksakalli | |
// https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.Sockets; | |
using System.Net; | |
using System.IO; |