THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
This is Video Response 2 User : Mark Zuck
Attempt One lol
After 24 hours of no sleep or 4 hours sleep in bus Max lol
And I try 2 make tutorila after direct back from trip Zagreb - klagenfurt - Minimundus - Zagreb
Mega LOL
Look part 2 lol
And Look part 2 lol . Tutorial 21/20 LOL MEGA FAIL :D
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
Unity3D Tutorial 18/24 : GUI text appear when mouse hovering on a object.
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
function OnMouseExit ()
{
currentToolTipText = "";
}
function OnGUI()
{
if (currentToolTipText != "")
{
var x = Event.current.mousePosition.x;
var y = Event.current.mousePosition.y;
GUI.Label (Rect (x-149,y+40,300,60), currentToolTipText, guiStyleBack);
GUI.Label (Rect (x-150,y+40,300,60), currentToolTipText, guiStyleFore);
}
}
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
THIS IS BACKUP IN TEXT FORM TUTORIAL FadeOutCamera
1. Create New java and name it : FadeOutCamera
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
var fadeTime : float = 5;
var fadeTexture : Texture;
private var fadeOut : boolean = false;
private var tempTime : float;
private var time : float = 0.0;
var fadeOutSound : AudioClip;
function Start(){ fadeOut = true; audio.clip = fadeOutSound; audio.Play();
}
function Update(){ if (fadeOut){ if(time < fadeTime) time += Time.deltaTime; tempTime = Mathf.InverseLerp(0.0, fadeTime, time); } if(tempTime >= 1.0) enabled = false;
}
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
2. Copy & Past this text and save C# :
---------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class CustomCursor : MonoBehaviour
{
//The texture that's going to replace the current cursor
public Texture2D cursorTexture;
//This variable flags whether the custom cursor is active or not
public bool ccEnabled = false;
void Start()
{
//Call the 'SetCustomCursor' (see below) with a delay of 2 seconds.
Invoke("SetCustomCursor",2.0f);
}
void OnDisable()
{
//Resets the cursor to the default
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
//Set the _ccEnabled variable to false
this.ccEnabled = false;
}
private void SetCustomCursor()
{
//Replace the 'cursorTexture' with the cursor
Cursor.SetCursor(this.cursorTexture, Vector2.zero, CursorMode.Auto);
Debug.Log("Custom cursor has been set.");
//Set the ccEnabled variable to true
this.ccEnabled = true;
}
}