Author Topic: [Solved] TNet 3.0 - TNAutoCreate - Prefab Path - problem  (Read 1477 times)

kreibich

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
[Solved] TNet 3.0 - TNAutoCreate - Prefab Path - problem
« on: May 10, 2016, 06:00:05 AM »
Hi,
 there was Prefab as GameObject reference parameter in TNAutoCreate in old version of TNet (2.x). In TNet 3.0 it was changed from Prefab (GameObject) to Prefab Path (string). I have prefab object in folder in Assets/Prefabs/Player... i tried to fill in Prefab Path this:

Assets/Prefabs/Player
Assets/Prefabs/Player.prefab
Assets\Prefabs\Player
Assets\Prefabs\Player.prefab
Prefabs/Player
Prefabs/Player.prefab
Prefabs\Player
Prefabs\Player.prefab
Player
Player.prefab


... but none of it works and it always throws this exception:

[TNet] Attempting to create a game object that can't be found in the Resources folder:[Assets/Prefabs/Player]
UnityEngine.Debug.LogError(Object)

What can I do to make it work?

Thank you.
« Last Edit: May 10, 2016, 06:22:54 PM by kreibich »

kreibich

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: TNet 3.0 - TNAutoCreate - Prefab Path - problem
« Reply #1 on: May 10, 2016, 06:00:22 PM »
Solved! I created folder "Resources", moved the Prefabs folder to this folder and now it works!