Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  get sign when cloth is tore
#15
(11-03-2019, 08:41 AM)josemendez Wrote: There's no ClothTornEvent class in Obi. That's a file you created, how am I supposed to know what's wrong with it? Assuming you copied the one I provided verbatim, this error refers to empty lines in the original script, so you must have modified it.

Make sure the cloth variable is not null (my script uses the RequireComponent attribute to make sure there's a cloth component in the object, so "cloth" can never be null).

Yes, I changed a bit, but error is same(line is different).  Even the original code you did cause error, so I tried to find out what I have to do.

"cloth component" means obi cloth or obi tearable cloth?

(11-03-2019, 08:41 AM)josemendez Wrote: There's no ClothTornEvent class in Obi. That's a file you created, how am I supposed to know what's wrong with it? Assuming you copied the one I provided verbatim, this error refers to empty lines in the original script, so you must have modified it.

Make sure the cloth variable is not null (my script uses the RequireComponent attribute to make sure there's a cloth component in the object, so "cloth" can never be null).

I set the ClothTornEvent and Obi Tearable Cloth as the image


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
get sign when cloth is tore - by Richard - 07-03-2019, 10:20 AM
RE: get sign when cloth is tore - by josemendez - 07-03-2019, 11:05 AM
RE: get sign when cloth is tore - by Richard - 07-03-2019, 12:27 PM
RE: get sign when cloth is tore - by josemendez - 07-03-2019, 12:39 PM
RE: get sign when cloth is tore - by Richard - 07-03-2019, 01:10 PM
RE: get sign when cloth is tore - by josemendez - 07-03-2019, 01:48 PM
RE: get sign when cloth is tore - by Richard - 07-03-2019, 02:11 PM
RE: get sign when cloth is tore - by josemendez - 07-03-2019, 02:13 PM
RE: get sign when cloth is tore - by Richard - 07-03-2019, 02:34 PM
RE: get sign when cloth is tore - by josemendez - 07-03-2019, 02:49 PM
RE: get sign when cloth is tore - by Richard - 07-03-2019, 03:08 PM
RE: get sign when cloth is tore - by josemendez - 07-03-2019, 04:04 PM
RE: get sign when cloth is tore - by Richard - 11-03-2019, 03:16 AM
RE: get sign when cloth is tore - by josemendez - 11-03-2019, 08:41 AM
RE: get sign when cloth is tore - by Richard - 11-03-2019, 10:20 AM
RE: get sign when cloth is tore - by josemendez - 11-03-2019, 07:45 PM
RE: get sign when cloth is tore - by Richard - 12-03-2019, 11:21 AM
RE: get sign when cloth is tore - by josemendez - 12-03-2019, 11:25 AM