Title: EventBindings Unregister · Issue #5 · pointcache/BasicEventBus · GitHub
Open Graph Title: EventBindings Unregister · Issue #5 · pointcache/BasicEventBus
X Title: EventBindings Unregister · Issue #5 · pointcache/BasicEventBus
Description: the current readme makes it appear as if _onTestEvent.Listen = false; is not necessary OnDestroy (it sounds like it is only required if in an OnEnable/OnDisable fashion, so if my gameobject is never disabled and re-enabled it's fine), bu...
Open Graph Description: the current readme makes it appear as if _onTestEvent.Listen = false; is not necessary OnDestroy (it sounds like it is only required if in an OnEnable/OnDisable fashion, so if my gameobject is neve...
X Description: the current readme makes it appear as if _onTestEvent.Listen = false; is not necessary OnDestroy (it sounds like it is only required if in an OnEnable/OnDisable fashion, so if my gameobject is neve...
Opengraph URL: https://github.com/pointcache/BasicEventBus/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EventBindings Unregister","articleBody":"the current readme makes it appear as if `_onTestEvent.Listen = false;` is not necessary OnDestroy (it sounds like it is only required if in an OnEnable/OnDisable fashion, so if my gameobject is never disabled and re-enabled it's fine), but it is!\n\na) Event Bindings need proper unregistration. this should be clear from the readme.\nb) API wise, it feels weird to set the listen property to true/false and it's doing magic Register/Unregister behind the scenes. I'd rather have a Register() / Unregister() method exposed. or somethig like a Dispose() method to be called at the end of the lifetime. \n\nThe finalizer can't be used - sadly. since the registering of \"this\" in the EventBus keeps the EventBinding infinetly alive. ","author":{"url":"https://github.com/soraphis","@type":"Person","name":"soraphis"},"datePublished":"2025-11-06T11:36:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/BasicEventBus/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58bdba8b-fd78-f9f3-1b4f-3bee08fc14e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA2A:10664E:78BE96:9CD0C5:698E805D |
| html-safe-nonce | c7a5391d5b4a327a55ca1cd12dc0f6b75c00e2ac604a438c791141f63ae77eeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTJBOjEwNjY0RTo3OEJFOTY6OUNEMEM1OjY5OEU4MDVEIiwidmlzaXRvcl9pZCI6IjE2NTUyNzM3NzkxMDQ3NDM1MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c06a03e5735911baadf49695f8e5acde8ef58e5fc512c7098b113efc5567b39 |
| hovercard-subject-tag | issue:3595415791 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pointcache/BasicEventBus/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adb54af1ed89eb773a634c2bee23c448900c144c9274c1e7841c2b140a0c4542/pointcache/BasicEventBus/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adb54af1ed89eb773a634c2bee23c448900c144c9274c1e7841c2b140a0c4542/pointcache/BasicEventBus/issues/5 |
| og:image:alt | the current readme makes it appear as if _onTestEvent.Listen = false; is not necessary OnDestroy (it sounds like it is only required if in an OnEnable/OnDisable fashion, so if my gameobject is neve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | soraphis |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/pointcache/BasicEventBus git https://github.com/pointcache/BasicEventBus.git |
| octolytics-dimension-user_id | 5315202 |
| octolytics-dimension-user_login | pointcache |
| octolytics-dimension-repository_id | 90581494 |
| octolytics-dimension-repository_nwo | pointcache/BasicEventBus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 90581494 |
| octolytics-dimension-repository_network_root_nwo | pointcache/BasicEventBus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width