Skip to content

Instantly share code, notes, and snippets.

View EricBatlle's full-sized avatar

Eric Batlle EricBatlle

  • Barcelona, Spain
View GitHub Profile
@EricBatlle
EricBatlle / package.json
Created March 5, 2023 13:53
Sample Unity package.json to create custom packages
{
"name": "com.unity.example",
"version": "1.2.3",
"displayName": "Package Example",
"description": "This is an example package",
"unity": "2019.1",
"unityRelease": "0b5",
"dependencies": {
"com.unity.some-package": "1.0.0",
"com.unity.other-package": "2.0.0"
@EricBatlle
EricBatlle / RenameFiles.ps1
Created July 21, 2022 09:49
Rename with powershell all files on a directory with sequenced names
ls | %{Rename-Item $_ -NewName ("{0}.png" -f $nr++)}
@EricBatlle
EricBatlle / In-App-Updates ERROR backtrace
Created April 30, 2021 11:34
In-App-Updates ERROR backtrace
java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 2019.3.13f1
Device model : Xiaomi POCOPHONE F1
Device fingerprint: Xiaomi/beryllium/beryllium:9/PKQ1.180729.001/V10.3.8.0.PEJMIXM:user/release-keys
Caused by: java.lang.Error: * * * * * * * * * * * * * * * *
Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
Build fingerprint: 'Xiaomi/beryllium/beryllium:9/PKQ1.180729.001/V10.3.8.0.PEJMIXM:user/release-keys'
Revision: '0'
ABI: 'arm'
@EricBatlle
EricBatlle / In-App-Updates ERROR logcat
Created April 30, 2021 11:04
In-App-Updates ERROR logcat
2021-04-30 13:03:35.011 2176-3053/? I/RenderThread: RenderThread resumed
2021-04-30 13:03:35.011 2176-3053/? I/RenderThread: All controllers paused.
2021-04-30 13:03:35.011 2176-3053/? I/RenderThread: RenderThread paused, waiting for signal
--------- beginning of system
2021-04-30 13:03:35.015 2176-2176/? I/Timeline: Timeline: Activity_launch_request time:66839819 intent:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Eric.SecondRaid/com.google.firebase.MessagingUnityPlayerActivity bnds=[456,1538][624,1706] (has extras) }
2021-04-30 13:03:35.021 14736-21792/? E/zeus-AndroidUtils-[pool-11-thread-62]: top : com.google.android.gm
2021-04-30 13:03:35.022 1678-3755/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Eric.SecondRaid/com.google.firebase.MessagingUnityPlayerActivity bnds=[456,1538][624,1706] (has extras)} from uid 10048
2021-04-30 13:03:35.030 1678-3755/? E/ANDR-PERF-
@EricBatlle
EricBatlle / PluginFragment.class
Last active August 18, 2020 07:31
Template with default functionality of Java classes for making fragmented plugins on Unity
package com.eric.nativetoolkit;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import com.unity3d.player.UnityPlayer;
import androidx.annotation.Nullable;
@EricBatlle
EricBatlle / CreateNewBranchFromPreviousCommit.git
Created August 12, 2020 16:00
How to create a new branch from an existing commit (Code number == SHA Code of the commit)
git checkout -b newBranchName a9c146a09505837ec03b
@EricBatlle
EricBatlle / UNITY.gitignore
Last active August 24, 2022 13:08
.gitignore configurations for UNITY projects
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
@EricBatlle
EricBatlle / ANDROID.gitignore
Last active August 11, 2020 22:38
.gitignore configurations for AndroidStudio projects
.DS_Store
# Built application files
*.apk
*.aar
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
@EricBatlle
EricBatlle / Fix untracked files on GIT
Last active February 14, 2022 15:26
When .gitignore is updated, some files can still be tracked, so this will reset that tracked files
git rm -r --cached .
git add .
git commit -m "Fixed untracked files"
git rm -r --cached . && git add . && git commit -m "Fixed untracked files"
@EricBatlle
EricBatlle / build.gradle
Last active August 13, 2020 07:58
Module gradle configuration for deploying faster Android Unity Plugins
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 26
targetSdkVersion 26
versionCode 1
versionName "1.0"