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
#!/bin/bash | |
echo "Uploading IPA to Appstore Connect..." | |
# Taken from this great thread: https://forum.unity.com/threads/path-to-the-final-ipa-file.754331/ | |
#Path is "/BUILD_PATH/<ORG_ID>.<PROJECT_ID>.<BUILD_TARGET_ID>/.build/last/<BUILD_TARGET_ID>/build.ipa" | |
path="$WORKSPACE/.build/last/$TARGET_NAME/build.ipa" | |
if xcrun altool --upload-app --type ios -f $path -u $ITUNES_USERNAME -p $ITUNES_PASSWORD ; then | |
echo "Upload IPA to Appstore Connect finished with success" | |
else |
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
#if UNITY_IOS | |
using UnityEngine; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
using UnityEditor; | |
using UnityEditor.iOS.Xcode; | |
using System.IO; | |
public class ExcemptFromEncryption : IPostprocessBuildWithReport // Will execute after XCode project is built |
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
/***************************************************************/ | |
/********** Simple target orientation camera script. ***********/ | |
/*** You can change parameters, such as rotation/zoom speed. ***/ | |
/***************************************************************/ | |
// Original: https://github.com/steaklive/Orbit-Camera-for-Unity-Demos | |
using UnityEngine; | |
using System.Collections; |
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 UnityEditor; | |
using UnityEngine; | |
public class ReadWriteModelPostprocessor : AssetPostprocessor | |
{ | |
void OnPreprocessModel() | |
{ | |
Debug.Log("Setting Read/Write permission automatically... Delete this script if this is not intended."); | |
ModelImporter modelImporter = assetImporter as ModelImporter; | |
modelImporter.isReadable = true; |
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
// taken from https://forum.unity.com/threads/shortcut-to-close-editor-window-close-tab.1232121/ | |
using UnityEditor; | |
using UnityEngine; | |
public class EditorCloseWindowTab : Editor | |
{ | |
[MenuItem("Shortcuts/Close Window Tab")] | |
static void CloseTab() | |
{ |
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
#if UNITY_EDITOR | |
using UnityEditor; | |
using UnityEngine; | |
namespace Suasor | |
{ | |
// TODO: | |
// editor settings window | |
// rate button |
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
#!/bin/sh | |
# new pre commit | |
# get bundle version | |
bundle_ver=`cat ./ProjectSettings/ProjectSettings.asset | grep bundleVersion | cut -d ' ' -f 4` | |
# explanation: | |
# cat - concatenate the content of multiple files | |
# cat [option] [file] | |
# cut command is a fast way to extract parts of lines of text files |
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 UnityEngine; | |
using System.Collections; | |
// taken from https://answers.unity.com/questions/1189736/im-trying-to-shuffle-an-arrays-order.html | |
public class DeckShuffle : MonoBehaviour { | |
public GameObject[] decklist; | |
private GameObject tempGO; | |