How to pick a random value, Then clone an object
Hello, I'm new to unity and this is the first game i've made, I'm having some issues, Can someone tell me what i'm doing wrong in code (Using C#) using System.Collections; using UnityEngine; public...
View ArticleHow to find a gameobject's name
I need to know how do I find out a gameobject's name, Like pretend you are the game object, And you ask, What is my name? I want a C# script to tell me how to do this.
View ArticleOdd cloning error.
This script is having an odd issue, When I try to clone it, It gives me [Running C#]: ! Assetss/Cloning.cs(11,29): error CS1525: Unexpected symbol 'clone' Here is my code: using UnityEngine; using...
View Article[Closed] Prefab not instantiating, No errors.
using UnityEngine; using System.Collections; public class Cloning : MonoBehaviour { // Update is called once per frame void Update () { //float rndizer = Random.Range(1, 101); //if (rndizer == 1) {...
View ArticleHave script sleep/wait for # of secs
I know in lua there is a sleep(#) value, But in C# i need to use something that'll make my program wait, However "yield return new WaitForSeconds(#);" Returns the error "The body of...
View Article[Closed] "The regerenced script on the Behavior is missing!"
I have no idea what it's talking about, I don't see anything wrong with my code. using UnityEngine; using System.Collections; public class ENAI : MonoBehaviour { // Use this for initialization void...
View Article[Closed] How to fix enemy clones from spawning more clones
I'm having this issue where the master enemy will clone the enemies that go out on the play field, But then the clones will make clones of themselves, I only want the master to make clones, Here's my...
View ArticleIf statement not working correctly.
Hello, I've tried switching what it was checking, But when it does move, it keeps moving for ever. Help? using UnityEngine; using System.Collections; public class doorScript : MonoBehaviour { public...
View ArticleHow to pick a random value, Then clone an object
Hello, I'm new to unity and this is the first game i've made, I'm having some issues, Can someone tell me what i'm doing wrong in code (Using C#) using System.Collections; using UnityEngine; public...
View ArticleHow to find a gameobject's name
I need to know how do I find out a gameobject's name, Like pretend you are the game object, And you ask, What is my name? I want a C# script to tell me how to do this.
View ArticleOdd cloning error.
This script is having an odd issue, When I try to clone it, It gives me [Running C#]: ! Assetss/Cloning.cs(11,29): error CS1525: Unexpected symbol 'clone' Here is my code: using UnityEngine; using...
View Article[Closed] Prefab not instantiating, No errors.
using UnityEngine; using System.Collections; public class Cloning : MonoBehaviour { // Update is called once per frame void Update () { //float rndizer = Random.Range(1, 101); //if (rndizer == 1) {...
View ArticleHave script sleep/wait for # of secs
I know in lua there is a sleep(#) value, But in C# i need to use something that'll make my program wait, However "yield return new WaitForSeconds(#);" Returns the error "The body of...
View Article[Closed] "The regerenced script on the Behavior is missing!"
I have no idea what it's talking about, I don't see anything wrong with my code. using UnityEngine; using System.Collections; public class ENAI : MonoBehaviour { // Use this for initialization void...
View Article[Closed] How to fix enemy clones from spawning more clones
I'm having this issue where the master enemy will clone the enemies that go out on the play field, But then the clones will make clones of themselves, I only want the master to make clones, Here's my...
View ArticleIf statement not working correctly.
Hello, I've tried switching what it was checking, But when it does move, it keeps moving for ever. Help? using UnityEngine; using System.Collections; public class doorScript : MonoBehaviour { public...
View ArticleWhat's causing this memory leak in my script?!
Please help! I'm using the OpenCVforUnity asset if anyone's wondering. EDIT: Btw, disposing causes errors saying it can't access it after being disposed. using System.Collections; using...
View ArticleOdd look with transparent models with standard materials
![alt text][1] [1]: /storage/temp/132735-screenshot-5.png So, i'm making models for vials, and this just dosen't look right... How can I fix this issue?
View Article
More Pages to Explore .....