This file contains hidden or 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.IO; | |
[InitializeOnLoad] | |
public class ProjectCleaner | |
{ | |
static int FilesDeleted = 0; | |
static int DirsDeleted = 0; |
This file contains hidden or 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; | |
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
public class RequireReferenceAttribute : PropertyAttribute | |
{ | |
public readonly Color highlight; | |
public RequireReferenceAttribute() | |
{ |
This file contains hidden or 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
/// Tests time conversion roundtripping between sample time and seconds using the specified sample | |
/// rate (`sr`). All possible sample times up-to-and-including the maximum unsigned integer value | |
/// are tested. This test uses single precision floating point math. | |
fn test_time_conversion_for_all_sample_lengths_f32(sr: f32) { | |
let mut sample: u32 = 0; | |
loop { | |
let seconds: f32 = sample as f32 / sr; | |
if sample != (seconds * sr).round() as u32 { | |
let hours: f32 = (seconds / 3600.).floor(); |
This file contains hidden or 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
/** | |
* cep.d.ts - Type declarations for Adobe's CEPEngine APIs. These APIs are used by Adobe's | |
* [CEPEngine_extensions.js](https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/CEPEngine_extensions.js) | |
* but may be used directly in CEP contexts as well. | |
* | |
* **WARNING:** These declarations are not guaranteed to be exhaustive. | |
*/ | |
/** |