View mesh combining.cs
{ | |
var batch = batches.First(); | |
var sprite = batch.Key; | |
var mat = new Material(batch.First().material); | |
mat.mainTexture = sprite.texture; | |
var count = batch.Count(); | |
var indexes = new int[6*count]; | |
var vertexes = new Vector3[4*count]; |
View gist:0b0eb6f2d31fa7e1a27e624f91585420
{ | |
var batch = batches.First(); | |
var sprite = batch.Key; | |
var mat = new Material(batch.First().material); | |
mat.mainTexture = sprite.texture; | |
var count = batch.Count(); | |
var indexes = new int[6*count]; | |
var vertexes = new Vector3[4*count]; |
View gist:4e307f137f5b0424eb3b7a9cdff9f64d
1>------ Build started: Project: Il2CppOutputProject, Configuration: Debug x64 ------ | |
1>Building GameAssembly.dll with MsvcWinRtToolChain | |
1> Msvc Install Version: 15.0 | |
1> Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10 | |
1> Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe | |
1> Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe | |
1> | |
1> Output directory: C:\Users\kortham\projects\hyperdot\Build\UWP\build\bin\x64\Debug | |
1> Cache directory: C:\Users\kortham\projects\hyperdot\Build\UWP\build\obj\il2cppOutputProject\x64\Debug | |
1>Il2CppSequencePointTable3.cpp |
View gist:4cae0117e5320edfd9934417bbcebd4b
1>------ Build started: Project: Il2CppOutputProject, Configuration: Debug x64 ------ | |
1>Building GameAssembly.dll with MsvcWinRtToolChain | |
1> Msvc Install Version: 15.0 | |
1> Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10 | |
1> Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe | |
1> Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe | |
1> | |
1> Output directory: C:\Users\kortham\Projects\hyperdot\BuildUWP\build\bin\x64\Debug | |
1> Cache directory: C:\Users\kortham\Projects\hyperdot\BuildUWP\build\obj\il2cppOutputProject\x64\Debug | |
1>Il2CppMethodPointerTable.cpp |
View gist:25983c3e1ae3f6936d35fb15f98aeca8
[CustomPropertyDrawer(typeof(EnumFlagAttribute))] | |
public class EnumFlagDrawer : PropertyDrawer { | |
public override void OnGUI (Rect position, SerializedProperty property, GUIContent label) { | |
Enum targetEnum = GetBaseProperty<Enum>(property); | |
EditorGUI.BeginProperty(position, label, property); | |
EditorGUI.BeginChangeCheck(); | |
#if UNITY_2017_3_OR_NEWER | |
Enum enumNew = EditorGUI.EnumFlagsField(position, label, targetEnum); | |
#else |
View gist:302ab702cfca776a89ba45abee08a86d
<key>RewiredSaveData_ControllerAssignments</key> | |
<string>{"players":[{"id":9999999,"hasKeyboard":true,"hasMouse":true,"joysticks":[]},{"id":0,"hasKeyboard":true,"hasMouse":true,"joysticks":[]}]}</string> | |
<key>RewiredSaveData|dataType=CalibrationMap|controllerType=Joystick|hardwareIdentifier=OSXInternalDriverWirelessController13561476|hardwareGuid=cd9718bf-a87a-44bc-8716-60a0def28a9f</key> | |
<string><?xml version="1.0" encoding="utf-16"?><CalibrationMap dataVersion="4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://guavaman.com/rewired http://guavaman.com/schemas/rewired/1.3/CalibrationMap.xsd" xmlns="http://guavaman.com/rewired"><axes><AxisCalibration><enabled>true</enabled><deadZone>0.15</deadZone><calibratedZero>0</calibratedZero><calibratedMin>-1</calibratedMin><calibratedMax>1</calibratedMax><invert>false</invert><sensitivity>1</sensitivity><applyRangeCalibrat |
View CompileTimer.cs
using System; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public static class EditorApplicationCompilationUtil { | |
static EditorApplicationCompilationUtil() { | |
EditorApplication.update += EditorApplicationCompilationUtil.OnEditorUpdate; | |
} |
View gist:189d2f2bb80930dd191c7f0f2e13c37f
#pragma warning disable 0649 | |
using UnityEngine; | |
using System.Collections; | |
public class Script : MonoBehaviour | |
{ | |
// magic coroutine maker |
View gist:a58b492b894fd32f02b30e1d671bfc77
root@LEDE:~# cat /etc/config/firewall | |
config defaults | |
option syn_flood '1' | |
option input 'ACCEPT' | |
option output 'ACCEPT' | |
option forward 'ACCEPT' | |
config zone | |
option input 'ACCEPT' |
View Annotated GL Trace, single sprite Unity 5.3.3f1 OpenGLCore
0.04 µs glPushGroupMarkerEXT(0, "Camera.ImageEffects"); | |
0.03 µs glPopGroupMarkerEXT(); returns: "Camera.ImageEffects" | |
0.03 µs glPushGroupMarkerEXT(0, "Camera.GUILayer"); | |
0.02 µs glPopGroupMarkerEXT(); returns: "Camera.GUILayer" | |
0.02 µs glPopGroupMarkerEXT(); returns: "Camera.Render" | |
0.03 µs glPushGroupMarkerEXT(0, "GUI.Repaint"); | |
0.03 µs glPopGroupMarkerEXT(); returns: "GUI.Repaint" | |
0.38 µs glBindBuffer(GL_COPY_WRITE_BUFFER, 2); | |
****************************************************************************************** |
NewerOlder