Search Unity

Integrating 'The internet' into a game

Discussion in 'Multiplayer' started by csiva, Mar 22, 2020.

  1. csiva

    csiva

    Joined:
    Mar 22, 2020
    Posts:
    1
    Hi Community,

    I have a new idea for a game that would integrate youtube and the collation of real-world events into a coherent read out at the end of a round. It will be a short duration game with characters having a conversation as the mechanic and an opinion being the result (with relevant links to that at the end).

    it won't be a fancy search engine but will seek to connect disparate pieces of information into a result.

    Just asking a few basic questions on the subject before I get planing:
    • Is there a way to include hyperlinks and browser views in a game?
    • Could I get some data parsed from youtube or Goggle into the game - Are there API limitations set by those companies against this kind of data processing in an application?
    • Would it be possible to get demographic data for a video if you are not the content creator tha could be used better to categorize the 'opinion profile' of a story or video.

    Ok, that's about it. Although the current issue is the Carona virus it will cover the basics of thought. Left and Right Wing, Aliens Concrete-Reality, Spirituality, Technology and Sexuality.

    Each pundit arranging themselves in a mind-map fashion above the conversation with a thread of truth guiding it to an eventual destination on a range of spectra.

    Peace, hope to hear from you soon.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    You can open a web page from your game with Application.OpenURL. TextMeshPro has the ability to treat a portion of text in a larger string as a button. If you want to embed HTML to generate hyperlinks in the text, you'll have to parse it yourself though. If you instead want a browser inside the game, I have seen an asset or two on the Asset Store which claim to do so.

    https://docs.unity3d.com/ScriptReference/Application.OpenURL.html

    On your last two questions, the YouTube API doesn't have much data you wouldn't see just by looking at the video's YouTube page. The YouTube Analytics API has demographic data, but all calls to it require an OAuth 2 sign in, and appears to only give access to data for your own account. But you can look more through the documentation.

    https://developers.google.com/youtube/analytics/reference/reports/query

    As for other limitations, there's several service agreement pages full of them you'll want to read and fully understand before moving ahead.

    https://developers.google.com/youtube/terms/developer-policies
    https://developers.google.com/youtube/terms/api-services-terms-of-service