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

[SOLVED]Deletion of instantiated clones not in order

There is a similar question I did read through, but my situation may differ a little (not to mention I believe it was in java code and I am using c#). I am new to Unity (1 week in) and I am creating...

View Article


Create a clone without components at runtime

Hi, how can I create a clone of my GameObject at runtime, but without any "Behaviour". Let's say I have a helicopter, with lots of components that do their own job: rotate the rotor, fly, control the...

View Article


Cloned object has not materials/textures

Hi, I am using the [Runtime OBJ Importer][1] to load a set of OBJ files at runtime. This imports the models complete with textures with out any issues for the initial loading of each model. However...

View Article

Mario Powerups Switching problem,Mario PowerUps Switch problem

Hello, my name is Reno. I am a beginner in programming and I want to program a game. My first game is a Mario Clone. I programmed it so that there is a game object for each powerup form. Each time...

View Article

How do I instantiate only ONCE?

Hi, I've looked everywhere for 'instantiate only once' and nothing has worked for me. Why does spawning in update, even with a bool, spawn clones on clones on clones? What I need: To create a ripple...

View Article


How to destroy the clone that I click on Unity 2D

I am trying to instantiate multiple clones of an object, and when I click on one of the clones, that specific clone is destroyed. I am able to instantiate one clone and then click on that clone and...

View Article

What is the best way to draw for a platformer?

I am new to Unity, and for my game I want to make a platformer where the player has to draw the floor for the character to run on. I have already started using a prefab that clones itself rapidly to...

View Article

Syncing animations.

Can i fetch keyframe information of Animation1 and set the key frame on Animation2 to the same key so i get two synchronizes animations even if Animation2 is instantiated later.

View Article


Character Transform

Hello I’m a newbie into the Unity3D world. I have a question and hope someone can help. Does anyone know about changing a character to another character in C#? I’m trying to make my game where you are...

View Article


Errors after cloning the project [question updated]

Hello, My computer's HD has broken so I bought a new one installed unity and sourcetree and cloned my project from git. When I opened it I got the erros on the image, I couldn't solve it yet, does...

View Article

Missing reference exception in Unity after instantiating multiple GameObject...

I am currently making a Breakout style game and have 2 "Power-ups" that are giving me some trouble. I have a double-ball and triple-ball power-ups that instantiate 1 or 2 extra balls from an original...

View Article

How to destroy a clone of an effect attached to an object?

I want to use some particle effects into a bonus object that will be destroyed upon contact with the player object. This object as its name suggests will add a certain benefit for the player for a...

View Article

Change tag on clones

Hi together, I have five identical Mercedes cars which drives on five different path at the same time. I want to change the tag of the car: when its defined on path1, the tag of the car should be...

View Article


change tag for clone-prefab from another script

Hi together, how do i change the Tag of a clone-prefab (for example Mercedes_BLUE) from the Initiator Script? I wrote: if (this.gameObject.name == "PathA") { Vehicles[5].tag = "Car2"; } but it does...

View Article

Unity 2D : How to make a perfect clone of my Game Object?

Hello I have a gameobject rock in my game scene and I cloned it and made it appear in the same position after it exits the game scene by using OnBecameInvisible but the problem I am facing is that...

View Article


strange cloning array beviour

had a strange thing happen in Unity 18.1.6f1 two int arrays seemed to be duplicates of each other and when accessing the first the second would also update with the same ints even though i never set it...

View Article

Unity 2D: How can i delay my clone for few seconds?

Hello everyone So i am cloning my gameObject(Rock) and i want it to wait a few seconds(3-4) everytime it spawns. Either wait for few seconds after spawning or spawn after few seconds when it exits the...

View Article


Fruit ninja course

I'm following a course in the udemy website. Earlier my project could not destroy the fruit by making them disappear. Now I succeeded and found that the codes given by the tutorial were not properly...

View Article

How to clone randomly 2

I know I did this before but most people look at newer posts and I want to hear what other people want to say. I have a 3d game where you drag things off the world but I need a cloner that clones my...

View Article

Saving Instantiated objects,Saving Instantiated objects

Hey, so I'm basically working on this idle type of game. Over time I use Instantiate to clone in some prefabs. The problem is once I reload the scene, all of the object are gone, is there some way that...

View Article
Browsing all 508 articles
Browse latest View live


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