Cloned objects not appearing in game while in play mode
Hi all, I just upgraded to Unity 2017.1. After upgrading my project, I tried to run it. I have a logic to instantiate 3d "tile" objects. The logic consists of doing GameObject.Find() to find the...
View ArticleHow do you make a clone have the same tag as its original?
I would like to know how do I make sure that every time I instantiate that clone has the exact same tag as its original. In my case I make making obstacles for an infinite runner and have named the...
View ArticleHow do I apply all things to all clone game objects.
I have grouped them all under an empty game object and I want to make it that each of the objects spawned have a Y position of one. So basically I want each one spawned to always have a y of 1. Also I...
View Articleshooting ice bolts
I'm making a 2d top-down rpg, and i have a spell. I made a sprite with icebolt image, but im not sure how i can shoot the sprite multiple times, so that there is 2 or more icebolts in the game at a time
View Articleteleport to instantiated knife (clone)
Hi! I am new to programming and I'm making my 1st game. I want to teleport my character to a knife that he threw. Please see the details below: 1) I tried transform.position =...
View ArticleHow to reference an array of waypoints to a enemy (clones)?
How do I reference an array of game objects (waypoints - spheres) in a enemy(clone)??? ---------- When i run the program the way points game objects are missing from the inspector of each clone....
View ArticleCannot convert type (class) to the same type (class)
**SUMMARIZING MY MAIN QUESTION: "In my Save/Load script, how the heck can I define and initialize a class called GameSettings, to be exactly like the GameSettings (class) located in my...
View Articlehow to play a clone's (prefab) animation?
hi people of earth. what I am trying to do is have my projectile/ bullet (paint ball) hit the wall play a splat animation and delete. so far it is hitting the wall and being destroyed when I try and...
View ArticleMissing Component in a Clone
How do I add a missing component to a Clone object in Unity? I'm currently using C# for the programming language. MissingComponentException: There is no 'AudioSource' attached to the...
View ArticleI have searched like the whole Internet for this lol (get Value of specific...
Hey, so i'm working on a racing Game in which you Race against AI's. Every car in the game (incl. the players one) has a **carEngine script** attached to it, which *for example* makes the car...
View ArticleHow to destroy the first clone of a UI Image using an array every time I...
>Here is a line of code that I used inside the void Update() function to make clones of the UI Image "car". `Image c = Instantiate (car, carPos, transform.rotation, transform.parent) as Image;`...
View Article(Clone) from Instantiated Prefabs over Network
Hi guys, now I have read the answers and that to the (clone) after instantiated objects and have followed them and my solution is semi-correct - it works on the PC but not on the phone... So, I'm...
View ArticleInstantiated clone GameObject spawning at wrong position.
I have script that is supposed to clone a canvas prefab whenever a enemy is hit, but when it clones it always clones to the same position, the canvas and text are both centered at (0,0,0). Here are the...
View ArticleInstantiate GameObject cloned into wrong position.
I have floating number script that I want to be instantiated every time the sword hits a enemy, the number will display the damage. The issue I have is that every time the prefab object is put in the...
View Article[SOLVED] How to destroy a cloned object if it object colliding with another...
So i have this code which Spawning an objectPrefab at a random location, sometimes they get bunched up as like spawning in the same position, i have managed to make both of them destroy itself, but i...
View ArticleHow to rotate all clones using single slider
Hello, Basically what I'm trying to do is to create a slider that would rotate all instantiated clones around their y axis. So far all my clones have their own slider, which rotates them, but this...
View ArticleNot being able to destroy clone of prefab.
I have a Blood splash prefab and it shows up when I kill an enemy. I want it to be destroyed and removed from the game screen after a while. Despite using the Destroy() method, it doesn't get destroyed...
View Articlerestricting clone number
im having a problem with this script sometimes making my gameobject clone to many times, how can i make it restrict to only cloning 1 time? using System.Collections; using System.Collections.Generic;...
View ArticleUnable to set position of instantiated prefab
I have been combing the forums and debugging this for a while and am hoping someone here would kindly help me on this. I have Unity 2017.3.0f3 and am trying to instantiate an object, then set its...
View ArticleCloned objects choosing different colors
I have a game were a grid will spawn and i need the colors of each cube on the grid to randomize but everyone of them is a clone, currently when i press start simulation the cubes will go on flashing...
View Article