A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class ObjectChangeEventsExample | |
{ | |
static ObjectChangeEventsExample() | |
{ | |
ObjectChangeEvents.changesPublished += ChangesPublished; |
using UnityEngine; | |
namespace ModularOptions { | |
/// <summary> | |
/// Uses a CustomPropertyDrawer to draw a string field as a SceneAsset object field. | |
/// </summary> | |
/// <example><code> | |
/// [SceneRef] string mainMenu; | |
/// </code></example> | |
[System.AttributeUsage(System.AttributeTargets.Field)] |
// Copyright (c) 2012 Calvin Rien | |
// http://the.darktable.com | |
// | |
// This software is provided 'as-is', without any express or implied warranty. In | |
// no event will the authors be held liable for any damages arising from the use | |
// of this software. | |
// | |
// Permission is granted to anyone to use this software for any purpose, | |
// including commercial applications, and to alter it and redistribute it freely, |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
namespace com.hololabs.editor | |
{ | |
public static class GotoScene | |
{ |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[System.Serializable] | |
public class SceneObject | |
{ | |
[SerializeField] | |
private string m_SceneName; |
// Non Editor code | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public abstract class TrafficLightAttribute : PropertyAttribute | |
{ | |
public bool DrawLabel = true; | |
public string CustomLabel; | |
public bool AlsoDrawDefault; |
using UnityEngine; | |
using UnityEditor; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
public class EditorCoroutineRunner | |
{ | |
[MenuItem("Window/Lotte's Coroutine Runner: Demo")] |
/* To avoid performance issues caused by string constructions when logging stuff | |
* to the console, simply surround the code with the the following: | |
* | |
* #if DEBUG_LOGGING | |
* Debug.Log("my" + numer.ToString("0.00") " super" + " expensive " + " string building code"); | |
* #endif | |
* | |
* When creating a non-debug build or testing the game for performance, simply disable | |
* the debug messages from the Unity menu (menu name can be simply changed below). | |
*/ |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
public class PackToRGB : EditorWindow | |
{ | |
private Texture2D[] RGB; |