Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
✅
‏‏‎

mika unitycoder

✅
‏‏‎
View GitHub Profile
@unitycoder
unitycoder / open-two-instances-unity.txt
Created May 25, 2017 03:04
Open Same Project in 2 Unity Editors
http://blog.deozaan.com/2014/09/22/fast-platform-switching-in-unity-made-easier/
@unitycoder
unitycoder / unity-install-linux-commandline.txt
Last active August 2, 2021 06:15
Install Unity3D on Ubuntu Linux Server
- see latest releases here: https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
using ubuntu terminal (commandline/shell)
- download with: wget http://beta.unity3d.com/download/a2454d41e248/unity-editor_amd64-5.5.3xf1Linux.deb
- install: sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb
missing dependencies error..google!!
- try: sudo apt-get -f install
- try: sudo apt-get update
- try: sudo apt-get upgrade -f
- try install again: sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb
- if finished successfully, see where it installed: dpkg --contents unity-editor_amd64-5.5.3xf1Linux.deb
@unitycoder
unitycoder / moonsharp-clr-type-convert.cs
Created May 18, 2017 02:18
Moonsharp Custom Type Converters
// custom type converters
// https://groups.google.com/forum/#!topic/moonsharp/On6dhfrpn1A
public static class ScriptHelper
{
public static void RegisterSimpleFunc<T>()
{
Script.GlobalOptions.CustomConverters.SetScriptToClrCustomConversion(DataType.Function, typeof(Func<T>),
@unitycoder
unitycoder / MiniScript-Ace-SyntaxHighlight.js
Created May 17, 2017 02:45
MiniScript AceCodeEditor Syntax Highlight Rules
// MiniScript Syntax Highlighter (WIP)
// to be used with https://ace.c9.io/tool/mode_creator.html
// MiniScript: https://forum.unity3d.com/threads/miniscript-lightweight-scripting-language-for-your-game.373853/
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
@unitycoder
unitycoder / debug-il2cpp.txt
Last active April 30, 2021 13:16
il2cpp Debugging in xcode
crash log from published app
"t2779279689" means "type 2779279689" where type is a hash we generated based on the fully qualified type name in managed code.
This should not be too important though, as we reserve the right to change the way we name things in generated C++ code in the
future. However, you can always map a given function or type back to its managed equivalent by using the generated C++ code.
In the Xcode project, you can search for any method or type (say UnhandledExceptionEventHandler_Invoke_m689053609 in this case).
The implementation of that method in C++ will have a comment just above it that listed to full managed name for that method.
The method RuntimeInvoker_Void_t2779279689_Il2CppObject_Il2CppObject happens to not be generated from managed code, but instead is
a generated helper method that we use. So you won't be able to track down where that method is in C#, for example.
@unitycoder
unitycoder / debug-appstore-app.txt
Created May 14, 2017 02:29
Debug / View Crash Logs for Deployed App Store Apps
- connect to mac
- run xcode
- window / devices, select your device
- view logs..
https://developer.apple.com/library/content/qa/qa1747/_index.html
@unitycoder
unitycoder / link-xml-error.txt
Created May 11, 2017 05:27
xmlexception attribute name and qualified name must be identical
@unitycoder
unitycoder / Encryption-Size.md
Created May 11, 2017 05:07
Encryption, Larger Compressed File Size

Why did my app increase in size after being released to the App Store?

When publishing your app, Apple App Store service first encrypts the binary file and then compresses it via zip. Encryption increases ’‘randomness’ of the code segment and thus makes it worse for compression. Check “Building for distribution” chapter above how to estimate App Store size before submission.

@unitycoder
unitycoder / FileModDialogCloser.cs
Created May 11, 2017 02:34
Find Windows Dialog By Name (like AutoIT)
// https://forum.unity3d.com/threads/how-to-disable-visual-studio-dialog-file-modification-detected.364919/#post-2691134
// check for window dialog by name
using System;
using System.Runtime.InteropServices;
using UnityEditor;
[InitializeOnLoad]
public class FileModDialogCloser {