Skip to content

Instantly share code, notes, and snippets.


Taras Leskiv TarasOsiris

View GitHub Profile
View replace_imports.groovy
allprojects {
def mappings = [
'': 'androidx.annotation',
'android.arch.lifecycle': 'androidx.lifecycle',
'': '',
'': '',
'': 'androidx.core.content.ContextCompat',
'': '',
'android.arch.lifecycle.Lifecycle': 'androidx.lifecycle.Lifecycle',
'android.arch.lifecycle.LifecycleObserver': 'androidx.lifecycle.LifecycleObserver',
TarasOsiris / Release checklist
Created Aug 13, 2020
Unity Asset Store Release checklist
View Release checklist
In Unity Project:
* Check if there are no compile errors or warnings on other platforms (Desktop e.g.)
* Make sure you rebuild the latest library into Unity project (.aar on Android)
* Test all implemented features on all Android versions (oldest and newest), different devices and emulators, on iOS test on all devices
* Test if old features didn't break
* Check if no side plugins are in the project that could be submitted (e.g. Plugins/Editor/Rider)
* Check if no hardcoded API keys are remaining (Google Maps, Place Picker)
* Update documentation
* Check if README.txt release notes in project are up-to-date
View AlarmClock.cs
using UnityEngine;
public class AlarmClock : MonoBehaviour
const string ACTION_SET_ALARM = "android.intent.action.SET_ALARM";
const string EXTRA_HOUR = "android.intent.extra.alarm.HOUR";
const string EXTRA_MINUTES = "android.intent.extra.alarm.MINUTES";
const string EXTRA_MESSAGE = "android.intent.extra.alarm.MESSAGE";
public void OnClick()
TarasOsiris / MyPluginIsBananas.cs
Last active Nov 26, 2020
Create Toast on Android Unity
View MyPluginIsBananas.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyPluginIsBananas : MonoBehaviour
const string ToastClassName = "android.widget.Toast";
public void OnMyButtonClick()
TarasOsiris / GetSocialPostprocessIOS.cs
Created Nov 28, 2016
VNG support for adding deeplinking to iOS 8
View GetSocialPostprocessIOS.cs
* Copyright 2015-2016 GetSocial B.V.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
TarasOsiris / DumpEditorTextures.cs
Last active May 4, 2022
Dump all Unity3d Editor GUI skin textures as images
View DumpEditorTextures.cs
using UnityEngine;
using System.IO;
using UnityEditor;
public static class DumpEditorTextures
const string AssetsFolder = "Assets";
const string TexturesDestFolderNamePro = "TexturesPro";
const string TexturesDestFolderNameNormal = "TexturesNormal";
static readonly string TexturesDestPathPro = Path.Combine(AssetsFolder, TexturesDestFolderNamePro);
BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|develop\|\*')
echo Branches merged into $MAIN:
echo $BRANCHES | tr " " "\n"
read -p "Delete these branches (y/n)? " answer
TarasOsiris /
Last active Jul 8, 2016 — forked from skratchdot/
My Paypal donate button in markdown format

Donation Button


View AndroidNativePicker.cs
using UnityEngine;
using System;
public static class AndroidNativePicker
public delegate void OnDatePicked(int year,int month,int day);
public delegate void OnTimePicked(int hourOfDay, int minute);
public static void ShowDatePicker(OnDatePicked callback)
TarasOsiris / SteeringSeek.cs
Created Jun 4, 2016
Understanding Steering Behaviors: Seek
View SteeringSeek.cs
using UnityEngine;
public class Seek : MonoBehaviour
private Transform pointer;
public float speed = 1.0f;
public float mass = 1.0f;
private Vector2 curVelocity;