Skip to main content

Questions tagged [prefabs]

0 votes
0 answers
36 views

Same prefab appears very different inside another parent

I am on Unity 6. I have 2 prefabs: the buildings shown in this picture. Each of these prefabs includes another prefab, which is the "hexagonal tile". It's the same "hexagonal tile"...
Nephen's user avatar
  • 1
1 vote
1 answer
51 views

How to delete prefab variants?

I am having trouble deleting a prefab variant from the project panel. I have removed the single instance of it I had in a scene, but when I try to delete it from the project panel it deletes and then ...
FrontEnd's user avatar
  • 1,779
0 votes
0 answers
23 views

Is it possible to create a prefab/variant with a different gameobject hierarchy?

I have a model which has many different parts as children gameobjects. If I select the model in the project view I can change all of the materials (incl children) in the materials tab in the inspector,...
FrontEnd's user avatar
  • 1,779
0 votes
1 answer
48 views

How to modify a prefab Explosion effect with your own particle sprite?

My main goal is to create an explosion effect when I clicked the object. Therefore, I searched in Unity Assets, and found a cool framework called CartoonFX, which is really ok for me. Cartoon FX - ...
ihatec's user avatar
  • 3
0 votes
2 answers
73 views

Prevent rotation after setting Human Pose

I'm attempting to move the fingers of a prefab using muscles with the SetHumanPose method. However, the prefab is rotated 90 degrees on each call to ...
wrappingduke's user avatar
0 votes
0 answers
69 views

Is there a way to rename prefab in unity by cuting a specific part of the name?

I have a lot of old prefabs in unity that should get renamed, doing this by hand would take a while. I there a way to cut the names and save them. I would like it to go from cutpart_2_goodpart to ...
Ivan's user avatar
  • 359
1 vote
1 answer
42 views

Instantiate prefab behind moving player

I'm trying to instantiate a bomb prefab behind the player. The script below works fine when the y rotation is 0,90,180,360. The bomb is instantiated behind the player. But for other angles, the bomb ...
single arrow games's user avatar
0 votes
0 answers
96 views

Getting missing prefab error in unity

Getting the following error while loading a project on unity. I'm usung ubuntu
Vamsi Shankar's user avatar
1 vote
2 answers
325 views

How can I solve this error and this warning when destroying instantiated prefabs?

I'm working on a level in a 2D game that includes two big triggers. Each time the player enters them, I Instantiate an enemy prefab. Then, the player can shoot ...
Ali's user avatar
  • 55
0 votes
1 answer
490 views

Why can't I edit the rotation property in prefab mode so that rotation changes apply to all instances?

I am learning using the Explore Unity Course. In the picture you can see I've instantiated many hats from the same prefab. I want to rotate the hat in prefab mode so that the change will apply to all ...
MoonMoonBird's user avatar
0 votes
0 answers
90 views

Spawn prefabs in a vertical stack with a fixed gap

I am making a simple game with a ball that moves left and right when it hits a wall. I want the game to be like an arcade type game where the ball is on a platform and it keeps jumping up. I've ...
Abraham Titus's user avatar
0 votes
1 answer
66 views

How do I Instantiate a player prefab

I turned my player into a prefab for a endless runner game but how would i instatiate it so that the player is in the scene when the game starts without it currertly being on a seprate platform that ...
charlie's user avatar
  • 11
1 vote
1 answer
572 views

Destroy and instantiate player prefab

I am new to game development. I am trying to change the player prefab every X seconds. For that, I am destroying the previously spawned prefab and instantiating a new prefab. But I don't know how to ...
Vishu Mudgal's user avatar
0 votes
1 answer
38 views

Assigning references to Prefabs placed in each Scene

I am currently working on a small 2D game which has a few different scenes, which are each a different level. I want to use my object prefabs from one scene in the others, but these do not include ...
Jack Johnson's user avatar
0 votes
0 answers
104 views

Initializing prefabs with different scripts

I am creating a tower defense game. Currently I have 2 different tower types 'Shooting tower', amd 'Unit tower'. I have a Scriptable object to initialize the tower. It contains some tower properties ...
Taras Fityo's user avatar

15 30 50 per page