Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Pinhole inspector throw errors
#6
(Today, 10:30 AM)Qriva0 Wrote: Actually one more question - why pinhole requires target to be obi collider, while the field itself is of type transform?

Futureproofing, making sure the API is similar to that attachments. In the future we may merge pinholes with attachments, making them a third attachment mode (static, dynamic, sliding).

Attachments support both static and dynamic modes: static mode accepts a transform and doesn't require a ObiCollider, dynamic mode does require one but warns you just like the Pinhole inspector does if your transform doesn't have one. It made sense to make the pinhole API follow a similar convention in order to make sure the amount of changes required in user code in the future are as few as possible.

kind regards,
Reply


Messages In This Thread
Pinhole inspector throw errors - by Qriva0 - 08-08-2025, 06:06 PM
RE: Pinhole inspector throw errors - by josemendez - Today, 10:45 AM