Sacchan-VRC / SaccFlightAndVehicles

Other
109 stars 25 forks source link

Add SaccEntity.GetExtention(s) #10

Closed esnya closed 2 years ago

esnya commented 2 years ago

Add an easy way for an extension to get another extension. It will also automatically set the necessary EntityControl variable for it.

With this function, the references in the inspector will be unidirectional, from the SaccEntity to extensions. This would make vehicle setup a little easier.

I've implemented samples that uses this function in built-in extensions. Please see #11. In some cases, this may sacrifice extensibility. However, this is useful if you only want to use to a specific kind of UdonSharpBehaviour.