View NcSimpleDialogueUi.cs
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.Generic; | |
using UnityEngine; | |
using NodeCanvas.DialogueTrees; | |
using TMPro; | |
using UnityEngine.UI; | |
using NodeCanvas.Framework; | |
public class NcSimpleDialogueUi : MonoBehaviour | |
{ | |
public TextMeshProUGUI NarrationText; |
View FindCustomScriptsEditor.cs
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 UnityEditor; | |
using System; | |
namespace Suasor | |
{ | |
public class FindCustomScriptsEditor : EditorWindow | |
{ | |
Vector2 scrollPosition; | |
public string[] Strings = new string[4] {"BreakableHelper", "ObjectColor", "StickerController", "Obi" }; // REPLACE THIS WITH LIST EDITABLE |
View post-build-push-ipa-appstore.bash
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 |
View ExcemptFromEncryption.cs
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 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 | |
{ | |
public int callbackOrder { get { return 0; } } |
View CameraTargetOrientationScript.cs
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; |
View ReadWriteModelPostprocessor.cs
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; |
View EditorCloseWindowTab.cs
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() | |
{ |
View AutoSave.cs
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 |
NewerOlder