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.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using AssetBundles; // Require AssetBundleManager available here https://www.assetstore.unity3d.com/en/#!/content/45836 | |
// Place this file in Editor filder | |
public class CloudBundle{ | |
[PostProcessBuildAttribute(1)] | |
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) { |
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
// Ref: http://developers.kongregate.com/blog/unity-webgl-memory-and-performance-optimization | |
setInterval(function() { | |
if (typeof TOTAL_MEMORY !== 'undefined') { | |
try { | |
var totalMem = TOTAL_MEMORY/1024.0/1024.0; | |
var usedMem = (TOTAL_STACK + (STATICTOP - STATIC_BASE) + | |
(DYNAMICTOP - DYNAMIC_BASE))/1024.0/1024.0; | |
console.log('Memory stats - used: ' + Math.ceil(usedMem) + 'M' + | |
' free: ' + Math.floor(totalMem - usedMem) + 'M'); | |
} catch(e) {} |
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.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using AssetBundles; // Require AssetBundleManager available here https://www.assetstore.unity3d.com/en/#!/content/45836 | |
// Place this file in Editor filder | |
public class CloudBundle{ | |
[PostProcessBuildAttribute(1)] | |
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) { |
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
package com.test.mytest; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import android.app.ProgressDialog; | |
import android.media.MediaCodec; |
OlderNewer