Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  create Obi handle on script at runtime
#7
(24-05-2019, 09:40 AM)josemendez Wrote: Sorry but I still cannot figure out what you want.

"Edit particle" allows you to choose particles using a editor tool. You cannot use this at runtime.

Code:
float left = Mathf.Min(startPos.x,currentPos.x);
float right = Mathf.Max(startPos.x,currentPos.x);
float bottom = Mathf.Min(startPos.y,currentPos.y);
float top = Mathf.Max(startPos.y,currentPos.y);

This code is used in a editor handle script, not to be confused with runtime particle handles. They're not the same. This is part of a UI tool, used to determine which particles will be selected/unselected when the user is dragging a selection box. It does not have anything to do with the particle simulation.

I think you want to create a runtime selection marquee tool, is that it?

Sorry...  That's it. I want to create that. Can I choose particle on script by marquee tool?


Messages In This Thread
RE: create Obi handle on script at runtime - by Richard - 24-05-2019, 10:46 AM