Adapting your game for Samsung Smart TV is much like porting your game to any other platform with Unity. The hardware in the TV is very similar to mobile devices (ARM CPU + OpenGLES GPU), so you can expect similar performance metrics.
Open Unity with Samsung TV support.
In the Unity menu bar, go to File > Build Settings and switch the Build Target to Samsung TV.
Get the IP address of the TV from the TV’s Unity Launcher app.
In the Unity menu bar, go to Edit > Project Settings > Player, open Publishing Settings and type the TV’s IP address into the Device Address field (see image below).
For multiple TVs, type all IP addresses, separating each one with a forward slash (“/”) as shown in the image below.
There are several different Samsung TV models released each year. Unity works on the following models:
Note that premium models have a faster CPU and higher end GPU.
The input mechanism is different depending on the model of TV.
2015 models have no touchpad. They have an accelerometer in the remote as well as air mouse capabilities.
2016 models have IR-only remotes and instead gamepads are used to provide primary input.
Unity makes dealing with different input devices easier by providing input modes. See the Samsung TV Input section for more details on input modes.
To selectively compile in code for Samsung TV, use the following:
#if UNITY_SAMSUNGTV
// Samsung TV specific code
#endif
Note that this is also active for the editor.
To check at runtime if you are running on Samsung TV, use:
if (Application.platform == RuntimePlatform.SamsungTVPlayer)
{
// Samsung TV specific code
}
You can obtain the model like this:
SystemInfo.deviceModel
Possible return values include:
STANDARD_15
STANDARD_16
This allows you to differentiate between TV years.
Samsung provides documentation on developing for Samsung Smart TV on Samsung’s developer forum. A lot of the information on this site does not apply to Unity users (it mainly supports web/Flash applications), but you might still find some of it useful.
In order to distribute your application to Samsung Apps TV store, you need to register your application and it must go through a certification process provided by Samsung or its affiliate at Seller Office before being launched on the store.
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.