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
void OnGUI() | |
{ | |
if( GUILayout.Button( "Fade to Scene" ) ) | |
{ | |
var scene = Application.loadedLevel == 0 ? 1 : 0; | |
TransitionKit.transitionWithDelegate( new FadeTransition( Color.black, 0.5f, 0.2f, scene ) ); | |
} | |
if( GUILayout.Button( "Pixelate to Scene with Random Scale Effect" ) ) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.unity3d.player" | |
android:installLocation="preferExternal" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<supports-screens | |
android:smallScreens="true" | |
android:normalScreens="true" |
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
// Usage: | |
// - stick the Vector3Editor.cs file in the Editor folder of your project | |
// - create a class with a Vector3 or Vector3[] property (you probably already have plenty of them. The WarpZone class below is a simple example) | |
// - create an editor script for any the class that you want to be able to edit extending Vector3Editor (see WarpZoneEditor below) | |
// - in OnEnable simply call setup() with your property names and optional labels | |
using UnityEngine; | |
using UnityEditor; |
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 System.Collections; | |
using System.Collections.Generic; | |
[RequireComponent( typeof( ParticleSystem ) )] | |
public class ParticleFlock : MonoBehaviour | |
{ | |
public Vector3 targetPosition; | |
public int totalBoids = 15; |
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
public static void onCreate( Bundle savedInstanceState ) | |
public static void onActivityResult( int request, int response, Intent data ) | |
public static void onRequestPermissionsResult( int requestCode, String[] permissions, int[] grantResults ) | |
public static void onNewIntent( Intent intent ) | |
public static void onStart() |
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
// Apple API for loading all your turn-based matches | |
[GKTurnBasedMatch loadMatchesWithCompletionHandler:^( NSArray *matches, NSError *error ) | |
{ | |
// there is either an error or a result. nice and simple. | |
if( error ) | |
log( "print a useful error: " + error ); | |
else | |
log( "the matches are here: " + matches ); | |
}]; |
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
void Awake() | |
{ | |
var chinese = "我是一个中国人的一句"; | |
Debug.Log( "chinese: " + chinese ); | |
} |
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
Ingredients: | |
- 1.5 lbs of hot peppers. Mix and match whatever you want: jalepenos, anaheims, haberneros, etc. If you can get at least 0.5 lb ripened red I recommend doing so but if you cant all green peppers works as well. If you don't want it too hot don't add all the seeds. | |
- 8 T honey (preferably local, raw honey. If you don't really worry about what you eat you can use suger/brown sugar) | |
- 6 cloves of garlic | |
- 3 t salt | |
- 1/2 cup vinegar (preferably raw Apple Cider vineger. If you don't really worry about what you eat you can use white vinegar) | |
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
- download the jar file from here: https://mega.co.nz/#!pd81gYBA!ui33ktU2xDqmcsYOv5oSZ6v-niPp1ofwh02naT7Vqbs Note that anytime you import any other plugins make sure that file doesn't get overwritten! | |
- overwrite the file with the same name in the Plugins/Android folder with the downloaded jar | |
- generate an AndroidManifest.xml file | |
- add the required permissions for Vuforia to the generated AndroidManifest.xml (see their docs for the details) |
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
Open the FacebookPostProcess.cs file and find the following line: | |
[PostProcessBuild] | |
Change the line to be: | |
[PostProcessBuild( 999 )] |