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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Reflection; | |
using UnityEditor.SceneManagement; | |
[InitializeOnLoad] | |
public class UnityAssistant | |
{ |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
//this script creates the folder structure and critical files to define a unity UPM package | |
//it also includes basic script templates for testing and editor tools | |
//just throw this into Assets/Editor folder and select Tools/Package Creator Window | |
//for a more fully featured package creation script, try https://github.com/jeffcampbellmakesgames/unity-package-tools |
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
Shader "Custom/World Space UV" { | |
Properties { | |
_Color ("Main Color", Color) = (0.5,0.5,0.5,1) | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
//_Ramp ("Toon Ramp (RGB)", 2D) = "gray" {} | |
_Scale ("Texture Scale", Float) = 0.1 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } |
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": "Unity FBX format", | |
"author": "Angel ""Edy"" Garcia (@VehiclePhysics)", | |
"version": (1, 2, 3), | |
"blender": (2, 80, 0), | |
"location": "File > Export > Unity FBX", | |
"description": "FBX exporter compatible with Unity's coordinate and scaling system.", | |
"warning": "", | |
"wiki_url": "", | |
"category": "Import-Export", |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
//TODO asset tags | |
//TODO asset dependencies (auto import) | |
//TEST manifest.json gets generated correctly |
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.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
public partial class BonusMenuItems | |
{ | |
[MenuItem("Tools/Add All Scenes to Build")] | |
static void AddAllScenesToBuild() |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ArcRender : MonoBehaviour | |
{ | |
public int Count = 10; | |
public float PowerMultiplier = 2; | |
public Transform handle; |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
//TODO clamp pitch rotation | |
//TODO y axis rotation is offset forward slightly, not at scene camera position | |
//TODO sometimes doesn't register mouse up/down events. should poll every frame? for mouse button state | |
public class UnrealCameraMovement : EditorWindow |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//https://stackoverflow.com/questions/31389598/how-can-i-detect-a-shake-motion-on-a-mobile-device-using-unity3d-c-sharp | |
public class ShakeInputEvent : MonoBehaviour | |
{ | |
public delegate void onShakeInput(); | |
/// when the phone is shaken |
NewerOlder