. Coherent Labs

Changelog: Gameface

Version 1.4.2.0 – released 05 Dec 2019


Feature

Unity3D support for Linux

Feature

Unity3D support for PlayStation 4

Enhancement

Made async and defer scripts work according to the standard

Enhancement

Enhanced the Player to support DPI on Mac OS X

Fix

Fixed styling of elements affected by attribute based CSS selectors

Fix

Fixed using preloaded images in Unity3D on Xbox One

Fix

Fixed [] of dom collections to return undefined for invalid indices

Fix

Fixed using sampler filtering for bitmap fonts

Fix

Fixed detecting mouse events on elements with certain transformations

Fix

Exposed the ILocalizationManager to Unity3D

Fix

Fixed SVGs disappearing with certain transformations

API

Fixed gamepad indices to work as specified by the standard. Read more about the changes

Version 1.4.1.0 – released 05 Nov 2019


Feature

Dynamic data-binding is available as an experimental option

Feature

Support for gamepad in Unity3D

Feature

Support for custom plugins in the Player

Feature

Support for localization in the Player

Feature

Added the document.elementFromPoint and document.elementsFromPoint methods

Enhancement

Support for the text-overflow CSS property

Enhancement

Support for the white-space CSS property

Enhancement

Reduced memory consumption of CSS variables

Enhancement

Added support for BC7 compressed textures

Enhancement

Improved performance of dash stroke paths

Enhancement

Enhanced new text entry API

Enhancement

Added option for controlling vertex and index buffer ring size

Enhancement

Added option for controlling the SDF character size for font rendering

Enhancement

Improved layout for text with different alignment

Enhancement

Added relatedTarget to JavaScript events

Enhancement

Added support for HTTP(S) resources in Unity3D

Enhancement

Added location for keyboard events in Unreal Engine 4

Enhancement

Added location and isRepeat for keyboard events in Unity3D

Fix

Fixed drawing of positioned elements below non-positioned elements

Fix

Fixed GC triggered crash in Unreal Engine 4 with preloaded images

Fix

Fixed borders when border-radius is used

Version 1.4.0.3 – released 10 Oct 2019


API

New License Keys have been generated!

Feature

Support for Google Stadia for native and Unreal Engine 4

Feature

Support for Linux for native and Unreal Engine 4

Feature

Support for Unreal Engine 4.23

Enhancement

Data-binding attribute for mask-image

Enhancement

Moved shaders inside the plugin for Unreal Engine 4

Enhancement

Updated Preact sample and documentation

Enhancement

Added first tier of a more powerful text entry API

Enhancement

Gamepad support for the Player on Mac OS X

Enhancement

Added API to control which resources can be loaded from a view

Fix

Fixed issues with using the IME and changing focus

Fix

Fixed the order of applying transformations and filters to elements

Fix

Fixed box shadows visible for non-visible elements

Fix

Fixed adding visible children to non-visible elements

Fix

Fixed video playback in Unreal Engine 4 on Mac OS X

Fix

Fixed setting relative URL using the history API

Fix

Fixed crash when calling C++ method from JavaScript inside engine.on events

Fix

Scaling SVG’s no longer results in wrong transformations

Fix

Fixed mouse buttons for MouseEvent in Unreal Engine 4

Version 1.3.2.1 – released 05 Sep 2019


Enhancement

Added support for five button mouse events

Enhancement

Added support for scroll events for textarea

Enhancement

Support for pre tags

Enhancement

Added support for the change event for input elements

Enhancement

Added UserIndex for virtual keyboard support in Unreal Engine 4

API

Added API to customize the resource loading in Unreal Engine 4

Fix

Fixed controller indices when connecting and disconnecting multiple controllers

Fix

Fixed the garbage collector on PlayStation4 to collect more aggresively on certain loads

Fix

Fixed several JavaScript engine crashes on PlayStation4 and Xbox One

Fix

Fixed crash when calling C++ methods with wrong number of arguments from JavaScript

Fix

Fixed reversed mouse scroll in Unreal Engine 4

Version 1.3.1.4 – released 22 Aug 2019


Fix Fixed rendering artifacts related to text without specified width.
Fix Fixed memory corruption on PlayStation 4, XBox One, iOS, UWP.

Version 1.3.1.1 – released 23 Jul 2019


Feature

Support for mixing languages and fonts in a single text.

Enhancement

Updated Android samples projects to support ARM64

Enhancement

Updated Android samples projects to Android Studio 3.4

Enhancement

Added support for optional RequireJS modules with error event for script and link elements

Fix

Fixed the offsetWidth and offsetHeight functions for hidden elements

Fix

Fixed using custom-element-tag as selector in CSS stylesheets

Fix

Enabled ARC for the metal backend library

Fix

Fixed cooking game on the fly with Unreal Engine4

Fix

Fixed crash when removing DOM elements with data-binding attributes

Version 1.3.0.2 – released 28 Jun 2019


Feature Added ability to define Custom data-binding attributes
Feature Vulkan backend Windows implementation for the native SDK
Feature Experimental Unreal Engine 4 Switch support. Video and inspector are
not supported yet.
Feature Experimental support for libc++ for Android
Feature Experimental support for Android ARM64
Feature Added support for CSS cursors in Unreal Engine 4
Feature Added text-transform for Unreal Engine 4
Feature Added an API to advance a view, without it rendering anything
Feature Added support for overflow-wrap CSS property
Enhancement Added DPI scaling to the player application
Enhancement Added data-bind-font-size
Enhancement Enhanced virtual keyboard support for Unreal Engine 4
Enhancement Added engine.whenReady promise object, equivalent to
engine.on('Ready')
Enhancement Added support for mipmaps in DDS textures
Enhancement Added support for the touchmove event
Enhancement Added controller support in the PlayStation 4, Nintendo Switch and
UWP samples
API Added API to control the size of the text atlas texture
Fix Fixed assert when creating input elements in multiple views
Fix Fixed missing invocations to the finish callback of animations
Fix Fixed restarting an animation inside the finish callback
Fix Fixed logging warnings in cohtml.js

Version 1.2.3.1 – released 24 Jun 2019


Fix Fixed crash when using by-value getters in data-binding
Fix Fixed crash when recreating views on PlayStation 4
Fix Fixed missing text on the UMG widget on PlayStation 4
Fix Fixed broken gradients on the UMG widget on PlayStation 4
Fix Fixed rendering uninitialized textures with the UMG widget on Xbox One

Version 1.2.2.3 – released 13 May 2019


Feature Added the :active pseudo selector
Feature Added the visibility CSS property
Feature Added the KeyboardEvent.repeat property
Enhancement Added data-bind-html, which allows to set innerHTML with data-binding
Enhancement Allowed the localization texts to contain html tags
Enhancement Added the load event to script and stylesheet elements
Enhancement Enhanced log messages for wrong property names used for data-binding
Enhancement {{model}} (without property) can be used for data-binding
Enhancement Scrolling works correctly with nested scrollable elements
Enhancement Automatically casting enum types to int for iOS and Switch for binding
Enhancement Binding supports long numbers
Enhancement Regular on event handlers work with data-bind-for
Enhancement Not handled promise rejections are logged
Enhancement Added engine.unregisterModel API to unregister a model from JavaScript
Enhancement Added an API to set the ILocalizationManager in Unreal Engine 4 integration
Enhancement Added support for exposing UDataTable to JavaScript
Enhancement Added ability to customize the automatic binding in Unreal Engine 4
Fix Fixed disappearing SVG images when background-image property is changed
Fix Positioning of text caret in text inputs with aligment
Fix Fixed text selection when text has CSS transform
Fix Fixed crash in Unreal Engine 4 when chaining multiple property accesses in data-binding
Fix Fixed the gamepaddisconnected event to contain which gamepad has been disconnected
Fix Fixed cloneNode to clone attached event listeners

Version 1.2.1.1 – released 24 Apr 2019


Feature Updated Unreal Engine to 4.22
Fix Fixed crash when using View::UnloadDocument
Fix Fixed support for React v16.5
Fix Fixed using iterator names that are prefix of other iterator names
in data-binding
Fix Fixed using {{model}} in data-binding expressions for C++ models.
Fix Fixed indexOf and slice for arrays exposed by-ref on ChakraCore
platforms

Version 1.2.0.4 – released 09 Apr 2019


Feature Added support for CSS transitions
Feature Added support for pointer-events CSS property
Feature Enhanced the flex CSS property to support setting grow and shrink
Feature Added support for CSS cursors
Feature Added support for the console tab and script debugging on Mac OS X
Feature Added support for mix-blend-mode: add
Feature Added support for KeyboardEvent.location
Feature Added support for copy and paste
Feature Added support for Home and End keys
Feature Added automatic sizing for text fields
Feature Added API to get the Nodes attributes from cohtml::INodeProxy
Feature Added text selection to all elements
Enhancement Refactored Renoir backend API to work better with low-level rendering APIs like Metal
Enhancement Replaced JavaScriptCore with ChakraCore on Xbox One and PlayStation 4
Enhancement Replaced JavaScriptCore with V8 on Mac OS X
Enhancement The inspector no longer disconnects when the view is reloaded
Enhancement Significantly improved inspector loading speed for pages with lots of elements
Enhancement Data-binding attributes are visible in the inspector
Enhancement Reduced thread-local variables count to allow running on more Android devices
Enhancement Android uses the Android NDK r15b
Enhancement Added gestures support in Unity3D
Enhancement Added range requests support in Unity3D
Enhancement Added gamepad support to PlayStation4 samples
Enhancement Improved performance for drawing polylines in canvas
Enhancement Allowed loading stylesheets encoded in UTF-8 with BOM
Enhancement Moved V8 background tasks to worker threads tasks
Enhancement Added GPU debug metadata in Unreal Engine 4
Enhancement Implemented animation shorthand CSS property
Enhancement Added custom HTMLMediaElement events signaling when a decoder cannot keep up (cohplaybackstalled) and when it catches up (cohplaybackresumed). These events can be used to synchronize other animations with the video playback.
Enhancement Seeking paused videos now shows a preview of the seeked position
Enhancement Added non-standard property to the CanvasRenderingContext2D “enableFastLineSegmentDrawing” which can allows much faster drawing in a canvas if the image consists of line segments only
Fix Fixed assert when calling bound C++ methods with incorrect arguments from JavaScript
Fix Fixed assert when removing the src attribute of an img and reloading the view
Fix Fixed using the skewX property in animations
Fix Fixed leaking some GPU resources on reloading the view
Fix Fixed calling the connectedCallback on custom elements in appendChild
Fix Fixed calling bound methods on objects that have been removed with View::DestroyExposedInstance
Fix Fixed using unsigned numbers for specifying a color in data-binding
Fix Fixed possible memory leak of ParseHTML when the system is destroyed before the load has finished.
Fix Fixed crash when using canvas stroke with gradient
Fix Fixed Inspector to show all transformations on an element with multiple transformations.
Fix Fixed currentTime attribute when the animation is paused
Fix Fixed onBlur, onFocus events on input elements when using React
API Changed Renoir API to allow simultaneous usage from Coherent GT and Gameface
API Split Renoir backend in UnrealEngine 4 to a separate module
API Added virtual destructors to pure virtual classes and structs
API Added default implementation to ViewListener’s methods
API Renamed Renoir library files to start with lib
API Moved enable color writes to the PSO instead of SetRenderTarget param

 

This is part of a breaking change in Renoir backends. See the how to update guide
API Moved MSAA to the PSO

 

This is part of a breaking change in Renoir backends. See the how to update guide
API Added upload buffer (constant buffers) management in Renoir

 

This is part of a breaking change in Renoir backends. See the how to update guide
API Moved auxiliary constant buffers from the Renoir backend to Renoir core library

 

This is part of a breaking change in Renoir backends. See the how to update guide
API Started doing ClearQuad instead of ClearRenderTarget based on new backend capability

 

This is part of a breaking change in Renoir backends. See the how to update guide
API Added BeginRenderPass and EndRenderPass backend commands to Renoir

 

This is part of a breaking change in Renoir backends. See the how to update guide

Version 1.1.0.4 – released 08 Feb 2019


Feature Added default rendering backend implementation for the Metal graphics API
Feature Added support for CSS Custom properties (variables)
Feature Added support for CSS “!important” rule
Feature Added support for multiple values in the CSS background-image property
Feature Added support for the CSS calc() function. Currently, mixing percentages with other value types is not supported.
Feature Selection API for input and textarea
Feature Added support for CSS ::selection pseudo element
Feature Added support for CSS :root pseudo-class
Feature Added cache control API for clearing and setting sizes of caches
Feature Added JavaScript capturing event phase processing
Enhancement Added support for the letter-spacing CSS property for inputs, buttons and textareas
Enhancement Added default styles for input, button and textarea
Enhancement Added text-align support for input, button and textarea
Enhancement Improved support for SVGs without viewBox
Enhancement Cohtml.js can be used in a standard web browser. Significantly increases the compatibility of pages testing in web browsers.
Enhancement Added samples for workflows based on WebPack and Redux
Enhancement Add support for multiple data models in data-bind expressions
Enhancement Upgraded the JavaScript VM on Windows and Android to V8 6.9.427

 

The Debug configuration now uses V8 build in Debug, so there will be more error checking at the cost of some performance
Enhancement Reduced the count of dynamic TLS slots allocation for Nintendo Switch
Enhancement Added support for Unreal Engine 4.21
Enhancement Implemented path stroking/filling with gradients in canvas elements
Fix Added CloneNode for CustomElements
Fix Fixed CustomElement’s callback invocations (they weren’t always fired)
Fix Fixed canvas element resize behavior (canvas context state is now correctly reset)
Fix Added missing ICU library to the Nintendo Switch package
Fix Fixed animations’ currentTime in Web Animations API (it was reported incorrectly when the animation is paused)
Fix Fixed crash on Nintendo Switch when not passing a custom log handler
API Input elements no longer inherit the font related styles of their parents
API Added GPU debug metadata emission useful for graphics debugging.
Enable with View::EmitRenderingMetadata and handle the
BC_PushMetadata, BC_PopMetadata commands in your RendererBackend implementation.

Version 1.0.0.6

Released 05 Dec 2018


Feature UWP Added support for UWP ARM.
Feature UWP The SDK will now use ChakraCore as JavaScript VM on UWP x86. JavaScriptCore is still the JSVM for UWP x64. This nets about 30% performance increase in JavaScript execution. ChakraCore on UWP x64 will be available in a later release.
Feature API Added initial support for virtual lists to the data binding system. Virtual lists allow users to work on sections of some lists of data instead of the full data. For example, you might want to display only the first 5 items of your in-game store instead of all items. See the docs for engine.makeVirtualList. This release brings support for pagination i.e. splitting your list into pages. Future improvements will add support for predicate filtering and sorting.
Feature JavaScript can now modify objects exposed by C++. This allows the UI to update game state directly without invoking functions.
Feature Added partial support for custom elements across all platforms. Custom elements provide a way for JavaScript devs to create their own HTML elements. Support is *partial* because new classes can only be derived from HTMLElement.
Feature API Added the ability to dump all currently used images in the UI. This is useful when you want to know which files to package, preload or generate atlases for. See the new method cohtml::View::GetUsedImagesList.
Feature Added support for the line-height CSS property.
Feature Added support for exposing objects containing std::pair, std::map and std::unordered_map to the UI.
Enhancement API Added support for the window.onresize event.
Fix Fixed a bug in the Player application which would fail to load files whose paths contained non-ASCII characters.
Fix Fixed a crash in the Player application when using the –height= parameter.
Fix Fixed a bunch of minor memory leaks across the scripting sybsystem.
Fix Animations on elements with display: none will now be properly paused and resumed when display: none is removed.
Fix Added virtual destructors to the cohtml::DebugDump and cohtml::FrameCapture structs.
Fix Fixed rendering of SVG gradients which were misplaced when under the effects of a transformation (translation, rotation, etc.).
Fix Fixed a bug which would cause some SVG files no never be loaded if a lot of SVGs were loaded simultaneously at the start of the application.
Fix Errors thrown inside event handlers of engine.on are now properly logged across all platforms. Previously, these errors would be silently ignored.
Fix Invoking console.log with null or undefined will now produce the same behaviour across all platforms. Previously, some would throw errors, others would log empty strings or empty objects.
Fix Fixed a crash when calling cohtml::System::Uninitialize while a video was still playing.
Fix Fixed a bug which would cause videos to sometimes stop spuriously.
Fix Fixed a bug which would cause some SVGs to be rendered incorrectly.
Fix Fixed a bug which would cause elements whose background is a linear-gradient to not update when another linear gradient is applied.
Fix Fixed rendering artefacts caused when the current value of box-shadow and only box-shadow was changed on an element.
Fix Fixed an issue which would cause hover effects on images to not appear every other time.
Fix Fixed a bug which caused playFromTo from the WebAnimations API to not play correctly after an animation has ended.
Fix Fixed an assert in Debug that was being hit when calculating new styles for some elements that have both box-shadow and transform applied.
Fix Switch Fixed a crash on Nintendo Switch when destroying rendering resources.
Fix Switch You no longer have to define COHERENT_HORIZON manually to build for Nintendo Switch.
Fix iOS Fixed a bug which would cause the SDK to throw an error whenever you accessed window.history.state on iOS.
Fix iOS Fixed a crash caused when using regular expressions while the garbage collector is running.
Fix iOS MacOS Some debug features were disabled in debug builds on MacOS and iOS (e.g asserts). They are now available on all platforms in Debug.
Fix UE4 Displaying a Gameface UMG widget inside a ScaleBox widget will now preserve scaling properly.
Fix UE4 Mouse input will now be correctly calculated even in the presence of safe zones. Previously, if UE4 deemed safe zones were needed, the UI would render correctly but mouse input would be offset.