In terminal.app, install ffmpeg through homebrew
brew install ffmpeg
Validate the installation:
As of January 2020, all apps running on macOs 10.15 Catalina are required to be notarized. For Unity games distributed outside the Mac App Store, such as with Steam, the notarization process is done post build using a series of Xcode command line tools.
private loadAssets(){ | |
console.log("loading assets"); | |
this._assetManager=new AssetsManager(this._Scene); | |
let meshTask=this._assetManager.addMeshTask("gemTask","Skull","Assets/","Skull.obj"); | |
meshTask.onSuccess=(task:MeshAssetTask)=>{ | |
console.log("load success"); | |
console.log(task); | |
task.loadedMeshes[0].position=Vector3.Zero(); | |
} | |
meshTask.onError=(task,message,exception)=>{ |
// NOTE: Copied and cleaned-up from Unity/Libraries/VuforiaNativeRendererController.mm | |
// REASON: The .mm file did not expose an interface and categorically overrode the Unity app delegate subclass | |
// using `IMPL_APP_CONTROLLER_SUBCLASS(VuforiaNativeRendererController)`, preventing us from providing our own | |
// subclass of `VuforiaNativeRendererController` to serve as the final app delegate. Diff this file with the | |
// source file (specified above) to view the applied changes. | |
#import "CustomVuforiaNativeRendererController.h" | |
#import "VuforiaRenderDelegate.h" | |
// Unity native rendering callback plugin mechanism is only supported |
using UnityEngine; | |
using UnityEditor; | |
public class SaveRenderTextureToFile { | |
[MenuItem("Assets/Save RenderTexture to file")] | |
public static void SaveRTToFile() | |
{ | |
RenderTexture rt = Selection.activeObject as RenderTexture; | |
RenderTexture.active = rt; |
// https://webreflection.medium.com/using-the-input-datetime-local-9503e7efdce | |
Date.prototype.toDatetimeLocal = | |
function toDatetimeLocal() { | |
var | |
date = this, | |
ten = function (i) { | |
return (i < 10 ? '0' : '') + i; | |
}, | |
YYYY = date.getFullYear(), | |
MM = ten(date.getMonth() + 1), |
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
[CustomEditor (typeof(TriggerContainer))] | |
public class TriggerContainerEditor : Editor | |
{ | |
private SerializedObject obj; |
#import "AFNetworking.h" | |
- (IBAction)uploadTest:(id)sender { | |
NSURL *url = [NSURL URLWithString:@"https://xxx.s3-ap-northeast-1.amazonaws.com/"]; | |
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:url]; | |
NSData *imageData = UIImagePNGRepresentation([UIImage imageNamed:@"194-note-2.png"]); | |
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"xxxxx/videos/XXXXW",@"key", | |
@"XXXXXXXX",@"AWSAccessKeyId", | |
(defn new-q [] (java.util.concurrent.LinkedBlockingDeque.)) | |
(defn offer! | |
"adds x to the back of queue q" | |
[q x] (.offer q x) q) | |
(defn take! | |
"takes from the front of queue q. if q is empty, block until something is offer!ed into it" | |
[q] (.take q)) |