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
/* inside activity class */ | |
private val launcher = registerForActivityResult(OpenDocumentTreePersistent()) { uri: Uri? -> | |
if (uri != null) | |
contentResolver.takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION) | |
/* ... */ | |
} |
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.Collections; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Text; | |
using UnityEngine; | |
[ExecuteAlways] | |
public class AnimationCurveBaker : MonoBehaviour | |
{ | |
public AnimationCurve curve; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.kurante.uactivity" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<application | |
android:allowBackup="true" | |
android:supportsRtl="true" | |
android:theme="@style/Theme.AppCompat.Light"> | |
<activity android:name=".UnityPlayerActivity" |
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
# MAKE A BACKUP OF YOUR FILES BEFORE USING SCRIPT | |
# Requires VTFCmd.exe | |
import os, subprocess | |
from PIL import Image | |
from time import time | |
MAX_WIDTH = 1024 | |
MAX_HEIGHT = 1024 |