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 System.IO; | |
using System.Linq; | |
using System.Xml.Linq; | |
using UnityEditor; | |
namespace Loom.Unity3d.Internal.Editor | |
{ | |
/// <summary> | |
/// Adds System.Numerics assembly reference to Unity-generated C# projects. |
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; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Windows.Forms; | |
using System.Xml; | |
using System.Xml.Linq; |
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; | |
using System.Text.RegularExpressions; | |
namespace LostPolygon.Shared { | |
internal class UnityVersionParser { | |
private readonly int _versionMajor = -1; | |
private readonly int _versionMinor = -1; | |
private readonly int _versionPatch = -1; | |
private readonly UnityBuildType _versionBuildType = UnityBuildType.Unknown; | |
private readonly int _versionReleaseNumber = -1; |
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
public static class GUIDGenerator { | |
public static string NewGuid() { | |
return Guid.NewGuid().ToString(); | |
Random random = new Random(); | |
StringBuilder guidBuilder = new StringBuilder(8 + 4 + 4 + 4 + 12 + 4); | |
AppendRandomInt(random, guidBuilder); | |
guidBuilder.Append('-'); | |
AppendRandomShort(random, guidBuilder); | |
guidBuilder.Append('-'); | |
AppendRandomShort(random, guidBuilder); |
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
PHP script that uses Unity Publisher API for PHP (https://github.com/LostPolygon/Unity-Publisher-API-PHP) to retrieve new asset sales, put them into a MySQL database, and notify about the sales via e-mail. | |
Data is inserted into `sales` table, which can be created from sales_table.sql file. Just set up the credentials and put this script on cron with whatever interval you want. Delete the email notification part if you don't need it. | |
Requires PHP 5.4, php_json extension, and remote socket access. | |
Also, I know it's ugly, but it does the job and served me well for over a year. |
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
// Drop into Assets/Editor, use "Tools/Regenerate asset GUIDs" | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using UnityEditor; | |
namespace UnityGuidRegenerator { | |
public class UnityGuidRegeneratorMenu { |