Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
Launching OSX app created with Unity from custom URL scheme

I'm looking for a way to launch an OSX app(Standalone) created with Unity from a browser using a custom URL scheme.
After add a custom URL scheme to the Info.plist, I can launch the app successfully.
And I want to know how can I get the arguments passed in the URL.(e.g. URLscheme://iwanttoreadthisdata).
Is there any way to do this?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Assuming it's a web GL build, you can find info here: https://answers.unity.com/questions/1285359/how-to-read-url-parameters-from-unity-webgl-build.html

The relevant information references that it's a bit tricky, as they use a JS library to execute in the browser context and extract data as a unity library.

https://github.com/Bunny83/UnityWebExamples/blob/master/Mandelbrot/URLParameters.cs

This looks at normal browser locations, and c# accesses/properties to force the js code to execute as a unity library at runtime. For browser JS code, the URL is window.location.href

And it parses out the data from that string using JS and gives back a dictionary object to unity c# code.

(I understand linking to these might be leading to an external site for answers, but the code is a bit lengthy, and would be redundant to copy/paste other good explanations). Other mods can edit if this is unreasonable.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda