tagged Encapsulation

Override app delegate in Unity for iOS and OSX (4/4)
Inject code to Mach-O binary

In the previous part of the tutorial series – Override app delegate in Unity for iOS and OSX (3/4) Method swizzling – we override app delegate in Unity iOS player using method swizzling. While it has countless advantages on iOS, on OSX method swizzling is the only option to override app delegate in OSX Unity […]

Override app delegate in Unity for iOS and OSX (3/4)
Method swizzling

In the previous part of the tutorial series – Override app delegate in Unity for iOS and OSX (2/4) Notification Center – we override app delegate using notification center. As that method has some limitations, now we use method swizzling to extend app delegate in a safe but flexible way. This part of the series […]

Override app delegate in Unity for iOS and OSX (2/4)
Notification Center

In the previous part of the tutorial series – Override app delegate in Unity for iOS and OSX (1/4) Plugin workflow – we established a solid base we can build plugins upon. Now we can start actually override app delegate behaviour, with the most soft way using notifications. TL;DR You may get the example project […]

Override app delegate in Unity for iOS and OSX (1/4)
Plugin workflow

When it comes to create native plugins for Unity, often the plugins need customize behaviour how the application starts / launches by override app delegate (see UIApplicationDelegate for iOS and NSApplicationDelegate for OSX). Opening app via Push Notifications, URL Schemes, Documents, User activities, or even via WatchKit events are all great examples of this. TL;DR […]

Unit test tutorial (1/3) Fundamentals

Unit test is basically protecting code from yourself (from people in general). Let me show some example in this language independent unit test tutorial. We all do mistakes, we all thinking focused around specific bulk of things at a time (even in this Unit test tutorial as you will see). We cannot keep eyes on […]

Unity Android plugin tutorial (2/3) Project setup and workflow

Unity_Android_Plugin_Tutorial_Hello_World_Excerpt
In the previous part of this tutorial series Unity Android plugin tutorial 1. Fundamentals I emphasized the importance of encapsulation of our plugin, mainly in order to work seamlessly with other plugins. This part is more of a classic step-by-step tutorial, where I show a convenient project setup, build workflow I found productive when creating […]

Unity Android plugin tutorial (1/3) Fundamentals

Unity_Android_Plugin_Tutorial_1_Excerpt
While Unity Android plugin development enables deep integration with mobiles, finding the right Unity Android plugin workflow is not that easy as you might think. Many sources encourage extending :UnityPlayerActivity:, as the source of your plugin, however, this approach really sources compatibility issues with other plugins.

Advanced custom WordPress excerpt

Customizing WordPress excerpt is essential once content gets grow on a WordPress site. Unfortunately the usual inline HTML output echoed out straight from PHP makes maintaining such modules quiet cumbersome. Custom WordPress excerpt // Include this to your ‘function.php’ somehow. function excerpt_filter($excerpt) { return ‘Customized’.$excerpt; } add_filter(‘get_the_excerpt’, ‘excerpt_filter’); While creating a custom WordPress excerpt is […]