PDA

View Full Version : The_Stick's C# and UnityScript shop!



The_Stick
01-17-2013, 11:30 AM
Well, flash is very popular, and Unity isn't big on this forum, so I decided too let it squeeze through the cracks while I make my game in it and make a script shop!

Here's how it works

You: I need a Main Menu script with start/exit buttons in C#!

*Wait until I get until my computer and give the code*

Me: Here it is!



using UnityEngine;
using System.Collections;

public class NameofScriptHere : MonoBehaviour {

void OnGUI() {

if (GUI.Button(new Rect(10, 10, 50, 50),"Exit"))
{

Application.Quit();

Debug.Log("Clicked Exit Game");
}
if (GUI.Button(new Rect(10, 70, 50, 30), "Start"))
{
Application.LoadLevel("Name of level 1");

Debug.Log("Clicked Start");
}
}
}


Note: I don't have the Unity editor open infront of me, I've been actually having stability problems with it, so this basic script might not work.

m0ntana
01-17-2013, 02:43 PM
You might want to put this in the ''Resources'' thread.

Jeff
01-17-2013, 02:49 PM
This is kind of irrelevant, and I apologize for it, but do you know anything about skeletal animation and/or IK limb placement? I've been trying to work out a system I can use in games but I'm not sure where to start.

The_Stick
01-17-2013, 03:59 PM
This is kind of irrelevant, and I apologize for it, but do you know anything about skeletal animation and/or IK limb placement? I've been trying to work out a system I can use in games but I'm not sure where to start.
Sorry, but you can go to www.mixamo.com and save some time rigging your model :) Go to characters -> custom character -> upload character then use the rigging webpage there. There are also some pretty good animations too apply too your char.

m0ntana, it WAS in the help and resources section, then the mods made them seperate forums, and this got stuck on the help forum. Mod, please move this.

m0ntana
01-17-2013, 04:00 PM
Oh. Well, the thread has already been moved, so you have nothing to worry about.
Anyways, good luck with your shop. If I'm interested, I might order soon.