playMaker

Author Topic: [SOLVED] Ray cast action on prefabs  (Read 2828 times)

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
[SOLVED] Ray cast action on prefabs
« on: May 09, 2012, 05:37:23 PM »
Ray cast action in my prefab isn´t working well.I put from game object - specific game object and I can´t put here anything.Is this a bug?
Bye
« Last Edit: May 11, 2012, 05:17:26 PM by Alex Chouls »

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Ray cast action on prefabs
« Reply #1 on: May 11, 2012, 05:11:57 AM »
Can somebody help me?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Ray cast action on prefabs
« Reply #2 on: May 11, 2012, 06:07:56 AM »
Hi,

 Prefabs do not accepts reference to gameObjects in the scene, this is likely the issue you are having


try the following: Either when the prefab starts, get the gameObject you want to specify, either with find, or from a variable actually in one of the fsm in your scene or a global variable

Bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Ray cast action on prefabs
« Reply #3 on: May 11, 2012, 03:39:42 PM »
Hey Jean I appreciate real your help.Yes of course prefabs are prefabs and they have some limits. Thank you Jean. :)
I haven´t already take the idea of lie to computer. ;)
Bye