Quantcast
Channel: Questions in topic: "clone"
Browsing all 508 articles
Browse latest View live
↧

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 Article


How 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 Article


How 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 Article

shooting 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 Article

teleport 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 Article


How 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 Article

Cannot 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 Article

how 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 Article


Missing 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 Article


I 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 Article

How 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 Article

Instantiated 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 Article


Instantiate 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 Article


How 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 Article

Not 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 Article


restricting 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 Article

Unable 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 Article

Cloned 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
Browsing all 508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>