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 UnityEditor.SceneManagement; | |
using UnityEngine; | |
namespace Custom.Scripts | |
{ | |
[InitializeOnLoad] | |
static class PlayMainScene_PrevSceneAutoLoader | |
{ |
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 Entitas; | |
using Entitas.CodeGeneration.Attributes; | |
[Context( Ids.Game )] | |
[Context(Ids.GameState)] // second context to force generation of EntityApiInterface | |
public class DestroyWith_Emit : IComponent | |
{ | |
public Int32 Value; | |
} |
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 UnityEngine; | |
public interface ITransformController | |
{ | |
Vector3 PosWorld { get; set; } | |
Vector3 PosLocal { get; set; } | |
Quaternion RotWorld { get; set; } | |
Quaternion RotLocal { get; set; } | |
Vector3 ScaleLocal { get; set; } |
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
import macros | |
# macro debug(c: varargs[expr]): stmt = | |
# result = newNimNode(nnkStmtList, c) | |
# for i in 0..c.len-1: | |
# # add a call to the statement list that writes the expression; | |
# # `toStrLit` converts an AST to its string representation: | |
# result.add(newCall("write", newIdentNode("stdout"), toStrLit(c[i]))) | |
# # add a call to the statement list that writes ": " | |
# result.add(newCall("write", newIdentNode("stdout"), newStrLitNode(": "))) |
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
bl_info = { | |
"name" : "Select Mode Pie Menu", | |
"author" : "Stan Pancakes", | |
"version" : (0, 1, 0), | |
"blender" : (2, 72, 0), | |
"description" : "Custom Pie Menus", | |
"category" : "3D View",} | |
import bpy |
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
#include <iostream> | |
class ScopeSwapOStream | |
{ | |
public: | |
ScopeSwapOStream(const ScopeSwapOStream&&) = delete; | |
ScopeSwapOStream(const ScopeSwapOStream&) = delete; | |
ScopeSwapOStream& operator=(const ScopeSwapOStream&&) = delete; | |
ScopeSwapOStream& operator=(const ScopeSwapOStream&) = delete; |