UNITY3D WAREHOUSE

WELCOME TO COMMUNITY.

OOOOOMG

I"M SO !!!.

!!!

Coming Soon.

!!!

Coming Soon..

Sunday, 20 December 2015

Unity change mesh renderer material

Unity change mesh renderer material
































DIRECT DOWNLOAD HERE











THIS IS BACKUP  IN TEXT FORM 

1. Create New C# and name it : TextureChanger


2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

public class TextureChanger: MonoBehaviour {

public Texture TextureHere; 


void OnTriggerEnter(Collider other){
if(other.gameObject.tag == "Player"){
renderer.material.mainTexture = TextureHere;
audio.Play();
}
}
void OnTriggerExit(Collider other){
if(other.gameObject.tag == "Player"){

GetComponent<BoxCollider >().enabled = false;
}
}
}







 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-



























































Wednesday, 25 November 2015

Unity Shrunk&Extend models

Unity Shrunk&Extend models !































DIRECT DOWNLOAD HERE



THIS IS BACKUP  IN TEXT FORM  

1. Create New java and name it : Shrunk&Extend 


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-







 function OnTriggerEnter(other : Collider)
 {
   if (other.tag == "Player")


   StartCoroutine(LerpScale(2.0f));// brzina promjene 10 sporije 2 brze
}


function LerpScale(time : float)
{
   var originalScale = transform.localScale;
   var targetScale = originalScale + Vector3(-1.0f, 0.0f, -1.0f); // promjene na obliku
   var originalTime = time;


   while (time > 0.0f)
   {
      time -= Time.deltaTime;


   transform.localScale = Vector3.Lerp(targetScale, originalScale, time / originalTime);
   yield;

   }
}







 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-








Thanks for watching!
And 
We Need New Talents!
So   Join  Clash of Clans  "Quintessence" clan
Clan tag : #YVCY2GJR
And let's kick some ass !















2 Clan Leader ANGA ,)

















Sunday, 15 November 2015

Unity 3D Mesh Renderer PopUp Message Tutorial 20155

Unity 3D Mesh Renderer PopUp Message Tutorial 20155

















DIRECT DOWNLOAD HERE





THIS IS BACKUP  IN TEXT FORM

1. Create New java and name it : MeshRendererPopUp


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-






#pragma strict

var player: Transform;
var showOnDistance: float = 2;
private var meshRenderer: MeshRenderer;

//----------------------------------------------------------------------------------
function Start ()
{
  meshRenderer = gameObject.GetComponent(MeshRenderer);
}

//----------------------------------------------------------------------------------
function Update ()
{

  if (Vector3.Distance(transform.position, player.position) < showOnDistance)
    meshRenderer.enabled = true;
    else
     meshRenderer.enabled = false;

}








 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-
















































Wednesday, 11 November 2015

Unity 3D Turn Gravity On Off Tutorial20154

Unity 3D Turn Gravity On Off Tutorial20154






























DIRECT DOWNLOAD HERE









THIS IS BACKUP  IN TEXT FORM  Tutorial20154

1. Create New C# and name it : TurnGravityOnOff 


2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

using UnityEngine;
using System.Collections;

public class TurnGravityOnOff : MonoBehaviour {

void OnTriggerEnter(Collider other) {
if (other.tag == "Player"){ // if player entered the trigger...
rigidbody.useGravity = true; // turn gravity on
rigidbody.isKinematic = false;// turn kinematic off


audio.PlayOneShot(audio.clip, 1.0f); // if player entered the trigger play audio...



Destroy(gameObject, 5.0f); // if player entered the trigger destroy after 5 sec...
}
}
}




 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-





































Saturday, 31 October 2015

Unity 3D Make Mystery Box Tutorial20153

Unity 3D Make Mystery Box
Spawn random prefab on trigger enter







































DIRECT DOWNLOAD HERE



























THIS IS BACKUP  IN TEXT FORM

1. Create New C# and name it : itemSpawner


2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

public class itemSpawner : MonoBehaviour {



bool hasSpawned = false;
public GameObject[] itemPrefabs;

void OnTriggerEnter(Collider other)
{
if(other.tag == "Player")
{
if(!hasSpawned)
{
hasSpawned = true;
Spawn();

}
}
}

void Spawn()
{

Instantiate(itemPrefabs[Random.Range(0,itemPrefabs.Length)],transform.position, transform.rotation);
}
}






 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-













Friday, 23 October 2015

Unity3D Enable/Disable objects, with script Tutorial 20152

Unity Enable/Disable objects, with script !

Tutorial 20152






































DIRECT DOWNLOAD HERE






















THIS IS BACKUP  IN TEXT FORM  

1. Create New java and name it : DisablePREFABS


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict

var Obj : GameObject;

function Start () {

Obj.SetActive(true);

}

function OnTriggerEnter () { Obj.SetActive (false); }

function OnTriggerExit () { Obj.SetActive(false);
  DontDestroyOnLoad (gameObject);
}



----------------------------------------­­­­­------------------------------------­-­-­-­-­-














THIS IS BACKUP  IN TEXT FORM  

1. Create New java and name it : EnablePrefabs


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict

var Obj : GameObject;

function Start () {

Obj.SetActive(false);

}

function OnTriggerEnter () { Obj.SetActive (true); }

function OnTriggerExit () { Obj.SetActive(true);
  DontDestroyOnLoad (gameObject);
}



----------------------------------------­­­­­------------------------------------­-­-­-­-­-


















THIS IS BACKUP  IN TEXT FORM  

1. Create New java and name it : EnablePrefabsOnAndOff


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict

var Obj : GameObject;

function Start () {

Obj.SetActive(false);

}

function OnTriggerEnter () { Obj.SetActive (true); }

function OnTriggerExit () { Obj.SetActive(false);
  DontDestroyOnLoad (gameObject);
}



----------------------------------------­­­­­------------------------------------­-­-­-­-­-



















Sunday, 18 October 2015

Android Restart Button Tutorial 20151

Android Restart Button Tutorial 20151





























DIRECT DOWNLOAD HERE












THIS IS BACKUP  IN TEXT FORM AndroidRestartButton

1. Create New C# and name it : AndroidRestartButton1

2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

public class AndroidRestartButton1 : MonoBehaviour {

public Texture2D button1;
public Texture2D button2;





// Use this for initialization
void Start ()
{
guiTexture.texture = button1;
}

// Update is called once per frame
void Update ()
{
foreach (Touch touch in Input.touches)
{
if (guiTexture.HitTest(touch.position) && touch.phase != TouchPhase.Ended)
{
guiTexture.texture = button2;

Application.LoadLevel("level1");


}
else if (guiTexture.HitTest(touch.position) && touch.phase == TouchPhase.Ended)
{
guiTexture.texture = button1;
}
}
}
}




----------------------------------------­­­­­------------------------------------­-­-­-­-­-












THIS IS BACKUP  IN TEXT FORM GUIrescaler

1. Create New JAVA  and name it : GUIrescaler

2. Copy & Past this text and save JAVA:
----------------------------------------­­­­­------------------------------------­-­-­-­-­-



#pragma strict

//here is a special gui rescaler that automatically rescales GUIText and GUITextures so they're not stretched.

private var getTxt:Component;
private var getTxtr:Component;
private var resX:float;
private var resY:float;
private var origResX:float;
private var origResY:float;
private var txtrX:float;
private var txtrY:float;
private var txtX:float;
private var txtY:float;

function Start () {
getTxt = transform.GetComponent(GUIText);
getTxtr = transform.GetComponent(GUITexture);
if(getTxtr == null && getTxt == null){
print("No GUIText or GUITexture exists on: " + transform.gameObject.name);
}

}

function Update () {

if(Screen.width != origResX || Screen.height != origResY){

origResX = Screen.width;
origResY = Screen.height;

if(getTxt != null){
resX = Screen.width;
resY = Screen.height;
txtX = transform.localScale.x;
txtY = transform.localScale.y;
transform.localScale.y = (transform.localScale.x*(resX/resY));
}
if(getTxtr != null){
resX = Screen.width;
resY = Screen.height;
txtrX = transform.guiTexture.texture.width;
txtrY = transform.guiTexture.texture.height;
transform.localScale.y = (transform.localScale.x*(resX/resY))/(txtrX/txtrY);
}
}

}







----------------------------------------­­­­­------------------------------------­-­-­-­-­-










Thursday, 8 October 2015

Unity 3D Floating Object float up and down

Unity 3D Floating Object float up and down












DIRECT DOWNLOAD HERE






THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------
THIS IS BACKUP  IN TEXT FORM

1. Create New java and name it :  Floating Object


2. Copy & Past this text and save java :



----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------


#pragma strict

 var floatup;
 function Start(){
     floatup = false;
 }
 function Update(){
     if(floatup)
         floatingup();
     else if(!floatup)
         floatingdown();
 }
 function floatingup(){
     transform.position.y += 0.4 * Time.deltaTime;
     yield WaitForSeconds(1);
     floatup = false;
 }
 function floatingdown(){
     transform.position.y -= 0.4 * Time.deltaTime;;
     yield WaitForSeconds(1);
     floatup = true;
 }



----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------














BONUS Solution 2
EXTRA OPTION --- Floating Object MoveUpAndDown Solution 2 ..


THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------
THIS IS BACKUP  IN TEXT FORM

1. Create New java and name it :  MoveUpAndDown



2. Copy & Past this text and save java :


----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------



#pragma strict
var amount : float = 1.0;
var speed : float = 4.0;
    function Start () {
var pointA = transform.position;
var pointB = transform.position + Vector3(0, amount, 0);
while (true) {
yield MoveObject(transform, pointA, pointB, speed);
yield MoveObject(transform, pointB, pointA, speed);
}
    }
   
    function MoveObject (thisTransform : Transform, startPos : Vector3, endPos : Vector3, time : float) {
var i = 0.0;
var rate = 1.0/time;
while (i < 1.0) {
i += Time.deltaTime * rate;
thisTransform.position = Vector3.Lerp(startPos, endPos, i);
yield;
}
    }


----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------
















Sunday, 27 September 2015

A Day in the My Life Game Developer, and Graphic designer .... in 24 min

A Day in the My Life Game Developer, and Graphic designer And so on....  in 24 min
































P.s. If your brain doesn't burn out in 24 min from watch this video you are The King











A Day in the My Life Game Developer, and Graphic designer and so on ....  in 24 min

Building Game Level From the ground up !

Intro Story, Soundtracks, Game storie, Graphic design, Game Develop, 
scripting and coding in java and c# 
And in the end i will make my own marketing business plan :)
NO NEED FOR BOSS OR ACC lol

Game Studio 30 + PEOPLE VS ME SOLO LOL
I replace them ALL 

Game  will go free on Android :)
3 Worldas / 30 levels + 
Starting game  version

And you guys will in my  free time get free  tutorials :)
And watching how game grow.



SPEED VIDEO
P.S This is bragging video Just4Fun 




Music in this show off  video is  from the HK Army

https://www.youtube.com/watch?v=RvTjOW_Qo3I



































Saturday, 26 September 2015

Unity 3D Texture Animation Tutorial

Unity 3D Texture Animation Tutorial
































DIRECT DOWNLOAD HERE









THIS IS BACKUP  IN TEXT FORM  



1. Create New java and name it : .....


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-











//GT5Material//

var texture1 : Texture2D;
var texture2 : Texture2D;
var texture3 : Texture2D;
var texture4 : Texture2D;
var texture5 : Texture2D;
var change : boolean = true;
function Start() {
        changeTexture();
}
function Update () {
}
function changeTexture () {
        while(change) {
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture1;      
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture2;
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture3;
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture4;
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture5;
        }
}






 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-



































































Friday, 18 September 2015

Unity 3D Simple Pop Up Text Tutorial

Unity 3D Simple Pop Up Text Tutorial


































DIRECT DOWNLOAD HERE

















THIS IS BACKUP  IN TEXT FORM

1. Create New java and name it : PopUpText


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-







//----------------------------------------------------------------------------------
// POP UP TEXT//----------------------------------------------------------------------------------

#pragma strict

var player: Transform;
var showOnDistance: float = 2;
private var textMesh: MeshRenderer;

//----------------------------------------------------------------------------------
function Start ()
{
  textMesh = gameObject.GetComponent(MeshRenderer);
}

//----------------------------------------------------------------------------------
function Update ()
{

  if (Vector3.Distance(transform.position, player.position) < showOnDistance)
    textMesh.enabled = true;
    else
     textMesh.enabled = false;

}

//----------------------------------------------------------------------------------

















 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-























Tuesday, 15 September 2015

Unity 3D Simple AirplanePropeller Tutorial

Unity 3D Simple AirplanePropeller Tutorial


































DIRECT DOWNLOAD HERE









THIS IS BACKUP  IN TEXT FORM  TUTORIAL 

1. Create New C# and name it : AirplanePropeller


2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

public class AirplanePropeller : MonoBehaviour {

public Vector3 Axis = Vector3.one;
void Start () {
}
// rotation along the Axis
private void FixedUpdate ()
{
this.transform.Rotate(Axis * Time.fixedDeltaTime);
}
}








 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-





















Sunday, 6 September 2015

Unity 3d Free Radar system

Unity 3d Free Radar system

































DIRECT DOWNLOAD HERE















THIS IS BACKUP  IN TEXT FORM  TUTORIAL Unity3D Free Radar System

1. Create New C# and name it : RadarSystem


2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


/// <summary>
/// Radar System. detection  on minimap by Tags[]
/// </summary>
using UnityEngine;
using HWRcomponent;
using System.Collections;


namespace HWRcomponent
{
public enum Alignment
{
None,
LeftTop,
RightTop,
LeftBot,
RightBot ,
MiddleTop ,
MiddleBot
}

}
public class RadarSystem : MonoBehaviour
{

private Vector2 inposition;
public float Size = 400; //  minimap size
public float Distance = 100;// maximum distance of game objects
public float Transparency = 0.5f;// Texture Transparency
public Texture2D[] Navtexture;// textutes list
public string[] EnemyTag;// object tags list
public Texture2D NavCompass;// compass texture
public Texture2D CompassBackground;// background texture
public Vector2 PositionOffset = new Vector2 (0, 0);// minimap position offset
public float Scale = 1;// mini map scale ( Scale < 1 = zoom in , Scale > 1 = zoom out)
public Alignment PositionAlignment = Alignment.None;// position alignment
public bool MapRotation;
public GameObject Player;
public bool Show = true;
public Color ColorMult = Color.white;
void Start ()
{
}

void Update ()
{
if (!Player) {
Player = this.gameObject;
}
if (Scale <= 0) {
Scale = 100;
}
// define the position
switch (PositionAlignment) {
case Alignment.None:
inposition = PositionOffset;
break;
case Alignment.LeftTop:
inposition = Vector2.zero + PositionOffset;
break;
case Alignment.RightTop:
inposition = new Vector2 (Screen.width - Size, 0) + PositionOffset;
break;
case Alignment.LeftBot:
inposition = new Vector2 (0, Screen.height - Size) + PositionOffset;
break;
case Alignment.RightBot:
inposition = new Vector2 (Screen.width - Size, Screen.height - Size) + PositionOffset;
break;
case Alignment.MiddleTop:
inposition = new Vector2 ((Screen.width / 2) - (Size / 2), Size) + PositionOffset;
break;
case Alignment.MiddleBot:
inposition = new Vector2 ((Screen.width / 2) - (Size / 2), Screen.height - Size) + PositionOffset;
break;
}
}
// convert 3D position to 2D position
Vector2 ConvertToNavPosition (Vector3 pos)
{
Vector2 res = Vector2.zero;
if (Player) {
res.x = inposition.x + (((pos.x - Player.transform.position.x) + (Size * Scale) / 2f) / Scale);
res.y = inposition.y + ((-(pos.z - Player.transform.position.z) + (Size * Scale) / 2f) / Scale);
}
return res;
}

void DrawNav (GameObject[] enemylists, Texture2D navtexture)
{
if (Player) {
for (int i=0; i<enemylists.Length; i++) {
if (Vector3.Distance (Player.transform.position, enemylists [i].transform.position) <= (Distance * Scale)) {
Vector2 pos = ConvertToNavPosition (enemylists [i].transform.position);
if (Vector2.Distance (pos, (inposition + new Vector2 (Size / 2f, Size / 2f))) + (navtexture.width / 2) < (Size / 2f)) {
float navscale = Scale;
if (navscale < 1) {
navscale = 1;
}
GUI.DrawTexture (new Rect (pos.x - (navtexture.width / navscale) / 2, pos.y - (navtexture.height / navscale) / 2, navtexture.width / navscale, navtexture.height / navscale), navtexture);
}
}
}
}
}

float[] list;

void OnGUI ()
{
if (!Show)
return;
GUI.color = new Color (ColorMult.r, ColorMult.g, ColorMult.b, Transparency);
if (MapRotation) {
GUIUtility.RotateAroundPivot (-(this.transform.eulerAngles.y), inposition + new Vector2 (Size / 2f, Size / 2f)); 
}
for (int i=0; i<EnemyTag.Length; i++) {
DrawNav (GameObject.FindGameObjectsWithTag (EnemyTag [i]), Navtexture [i]);
}
if (CompassBackground)
GUI.DrawTexture (new Rect (inposition.x, inposition.y, Size, Size), CompassBackground);
GUIUtility.RotateAroundPivot ((this.transform.eulerAngles.y), inposition + new Vector2 (Size / 2f, Size / 2f)); 
if (NavCompass)
GUI.DrawTexture (new Rect (inposition.x + (Size / 2f) - (NavCompass.width / 2f), inposition.y + (Size / 2f) - (NavCompass.height / 2f), NavCompass.width, NavCompass.height), NavCompass);

}
}










 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-

And Images BackUp Here .)




















































































Thursday, 6 August 2015

Summer vacation

Summer vacation in Island of Pag, Croatia





























 See you after the summer has gone .)