Hello,
Sorry for the Vague title, but in short, I have 2 prefabs, 1 is the character window, and the other is the actual player character the player customized from the last panel, the character window is a prefab, and the player character is also a prefab.
the good news is, I do have the player character coming through, but its off to an angle and its in the back of the prefab… not sure how or why, I did check and does have a sprite renderer and made sure it has the high number and sorting layer higher than the Character window…
so how the hierarchy is:
the character window
player character
also to note, the player character is a empty game object with several sprite images for the customization, something similar to:
- blackthornprod video, 2d customization menu which is the player character, that i want to show on the character window which is also a prefab… i seen nested prefabs: Unity - Manual: Nested Prefabs
but again, the customizations are not coming through and the image is off to the side:
the code is below:
//below is on the Character window prefab
public void Start()
{
playerCharacter.SetActive(true);
GameObject player = Instantiate(playerCharacter);
player.transform.SetParent(playerCharacterBackground.transform);
player.transform.localScale = Vector2.one;
}
I added pics to the attachment

