playMaker

Author Topic: Photon Error[SOLVED]  (Read 3604 times)

Lobohotpants

  • Playmaker Newbie
  • *
  • Posts: 38
Photon Error[SOLVED]
« on: September 03, 2012, 09:33:37 PM »
Could not Instantiate the prefab.  Please verify you have this gameobject in a Resources folder (and not in a subfolder)

I'm not sure why I get this error.  I have the same setup as the demoworker tutorial.  Could someone give me a little insight?
« Last Edit: September 04, 2012, 03:55:33 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon Error
« Reply #1 on: September 04, 2012, 03:43:59 AM »
Hi,

 This error is coming from Photon Networking framework itself, so it's likely that indeed, the gameObject you are referencing in the Instantiate Action is not in a "Resources" folder

 "Resources" folders are special folders treated in a very specific way by unity, so simply move your prefab in a "Resources" and you then should be fine ( double check on the actual demo, the "fsm photon player" is in a "resources" folder).

bye,

 Jean

Lobohotpants

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Photon Error
« Reply #2 on: September 04, 2012, 10:54:28 AM »
Ah, thank you Jean.  I wasn't aware that you had to specifically name the folder Resources.