updateTexture(event, width, height)
Called automatically if the video source changes and updates the internal texture dimensions.
Then dispatches the onChangeSource signal.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
event | object | <optional> | The event which triggered the texture update. |
width | integer | <optional> | The new width of the video. If undefined |
height | integer | <optional> | The new height of the video. If undefined |
- Source code: gameobjects/Video.js (Line 572)
Please login to continue.