playMaker

Author Topic: Trigger event by layer  (Read 3509 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Trigger event by layer
« on: June 02, 2015, 07:40:31 PM »
get it from Ecosystem or copy/paste from https://snipt.net/dudebxl/

any comments or issue post here.

Thx
« Last Edit: June 02, 2015, 07:47:00 PM by dudebxl »

thatnzguy

  • Playmaker Newbie
  • *
  • Posts: 43
Re: Trigger event by layer
« Reply #1 on: June 02, 2015, 09:28:42 PM »
Looks good, I'll have to check it out.

cheers!

moondust.games

  • Playmaker Newbie
  • *
  • Posts: 46
Re: Trigger event by layer
« Reply #2 on: December 13, 2017, 04:55:50 PM »
This script has an error and causes Xcode to add it's own event handlers which could use more cpu. It gives warnings of FSM not preprocessed.

Need to replace onUpdate() with OnPreprocess()

edit: (I know this thread is old, but the custom script is on the ecosystem)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Trigger event by layer
« Reply #3 on: December 13, 2017, 06:22:22 PM »
Hi
You need to replace Awake() with OnPreprocess() actually
I will ask jean first if there will be conflicts with older unity versions if i would change this and will change and let you know if it is changed :)