sudo mkdir /private/tmp
sudo chmod 1777 /private/tmp
xcrun
xcrun simctl list devices //to list all simulators
xcrun simctl delete // to delete specific device
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEditorInternal; | |
/// <summary> | |
/// Class to manipulate the gameview sizes. | |
/// Based on: https://answers.unity.com/questions/956123/add-and-select-game-view-resolution.html |
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
As of January 2020, all apps running on macOs 10.15 Catalina are required to be notarized. For Unity games distributed outside the Mac App Store, such as with Steam, the notarization process is done post build using a series of Xcode command line tools.
using System; | |
using System.Runtime.InteropServices; | |
using System.Runtime.CompilerServices; | |
using Unity.Burst; | |
using Unity.Mathematics; | |
public static class CameraMath | |
{ | |
/// <summary> |
// silence dart-sass / npm sass DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. | |
const silenceSomeSassDeprecationWarnings = { | |
verbose: true, | |
logger: { | |
warn(message, options) { | |
const { stderr } = process; | |
const span = options.span ?? undefined; | |
const stack = (options.stack === 'null' ? undefined : options.stack) ?? undefined; |
This document describes the HTTP communication of LibreLinkUp which functions as follower app to receive cgm data. Some data in the responses were masked.
This dump was created on an android device with LibreLinkUp app. Capturing was done with HttpToolkit over adb.
using System.IO; | |
using UnityEditor; | |
using UnityEditor.Android; | |
using UnityEngine; | |
/// <summary> | |
/// Used as a workaround for Unity 2022.x who isn't able to set the installlocation value to "auto" in the AndroidManifest.xml file. | |
/// Should be put in the Assets/Editor folder, otherwise you'll get errors on build. | |
/// The issue can be followed here : https://issuetracker.unity3d.com/issues/android-install-location-changes-when-exporting-project | |
/// </summary> |