Questions tagged [prefabs]
The prefabs tag has no summary.
57 questions
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"...
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 ...
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,...
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 - ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...