Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Get page meta tag content

Discussion in 'WebGL' started by The-Little-Guy, Mar 11, 2016.

  1. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    I have a WebGL game that is in a browser, and I was wondering if it is possible to get the content of that meta tag from within the game.

    Using this:

    Code (CSharp):
    1. Application.ExternalEval();
    Can I somehow return the content back to c#?
     
  2. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    We were able to figure it out using the jslib files
     
  3. jitato5994

    jitato5994

    Joined:
    Nov 18, 2022
    Posts:
    1
    1. using System. Collections. Generic;
    2. public List findNeighbours()
    3. {
    4. List<GameObject> localFish = new List<GameObject>();
    5. foreach(GameObject fish in fishSchool)
    6. {
    7. float open graph alternator = Vector3. Distance (transform. position, fish. transform. position);
    8. if (distance <= nDistance)
     
    Last edited: Nov 19, 2022