- Tested on
- OneUI 4.x/5.x based Stock/Custom ROMs.
- GSI with OneUI 4.x/5.x stock firmware.
- Front Camera Does not work.
- 0.5x, 1x and 3x lenses work.
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
namespace UnityUtilities | |
{ | |
/// <summary> | |
/// A replacement for `Task.Run()` that cancels tasks when entering or | |
/// exiting play mode in the Unity editor (which doesn't happen by default). |
import os | |
import struct | |
import sys | |
import uuid | |
import zipfile | |
import json | |
# Snowrunner save "converter" (Xbox Game Pass for PC -> Steam) | |
# Might work for other games available with the Game Pass if the app name is changed. | |
# Running: Just run the script with Python 3 to create a ZIP file that contains the save files |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityToolbarExtender; | |
/// <summary> |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEngine; | |
namespace Maz.Unity.EditorExtensions | |
{ | |
[InitializeOnLoad] | |
public class EditorModeOnly | |
{ |
<# Script to install multiple applications in one command line through WinGet | |
You can modify bootstrapArray value and use "--bootstrap" argument to bootstrap a new machine | |
Don't forget to change ExecutionPolicy to execute this script | |
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope CurrentUser #> | |
$bootstrapArray = @("vlc", "7zip", "cpu-z", "coretemp") | |
if ((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) | |
{ | |
if ($args[0] -ne "--bootstrap") { $bootstrapArray = $args } |
# Download latest dotnet/codeformatter release from github | |
$repo = "dotnet/codeformatter" | |
$file = "CodeFormatter.zip" | |
$releases = "https://api.github.com/repos/$repo/releases" | |
Write-Host Determining latest release | |
$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |