Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved My Prefabs Don't Work???

Discussion in 'Prefabs' started by GeorgeSaint, Mar 21, 2021.

  1. GeorgeSaint

    GeorgeSaint

    Joined:
    Aug 16, 2018
    Posts:
    8
    Hello!
    Try to describe in words but i'll put video below, where You can see what is my problem.
    So i have scene where player has attached to him sword and you control him by keyboard or UI joystick
    i use using UnityStandardAssets.CrossPlatformInput;
    In firs scene all works fine, player moves, swing weapon on keypress and touch button.
    When come to the next scene, player moves, weapon swing work ONLY ON keyboard, touch button give error.
    Please, spend Your 3 minutes to help me with that problem, and watch video!!!!
    Problem is the weapon prefab work only from that i take from player, not that i take from prefab folder...
    Help! Please Lead me to solving this!!!
    Thank You!!!!!!!
    [MEDIA[/MEDIA]
     
    Last edited: Mar 22, 2021
  2. GeorgeSaint

    GeorgeSaint

    Joined:
    Aug 16, 2018
    Posts:
    8
    Anyone know, why prefab from Hierarchy works with UI Buttons,
    but prefab, from prefab folder don't???
     
    Last edited: Mar 22, 2021
  3. GeorgeSaint

    GeorgeSaint

    Joined:
    Aug 16, 2018
    Posts:
    8
    (Solved)
    Topic Closed)