SchultzGames
Para tirar dúvidas, crie um tópico especifico na área "Dúvidas em Geral" e aguarde ser respondido. Evite comentar em tópicos não relacionados a sua dúvida :D
TÓPICOS RECENTES:
Tópico:
Postado em:
Postado por:
[RESOLVIDO] Unity - Scrollbar não funciona
[TUTORIAL] AI que cria scripts para você, inclusive scripts para Unity !!!!
[RESOLVIDO] Animando Image na Unity não funciona
Aplicativo para IOS
Hospedar um jogo multiplay na itch.io
Unity -TextMeshProUGUI- 1 das coisas q estão deixando a scene lenta p abrir
Script para detetectar o movimento do player
Alguém ajuda com um erro por favor? PSDImporter.cs
[RESOLVIDO] - Unity - Rotação da Câmera - Mathf.Clamp não funciona
Alterar textura .unity3d
Comportamento do movimento do inimigo. Sair do caminho e Fugir
Procuro uma equipe
Ajuda Com Sala de Jogo Multiplayer
COMO FAZER A PORTA ABRIR SÓ EMPURRANDO ELA COM O PLAYER?
Visual Studio - Vend os Scripts na Aba "Modo de Exibição de Classe" soltos
app fica fechendo após mobile notification
[RESOLVIDO] Controlar dois player dentro de um jogo multiplay usando mirror
Unity - O Jogo fecha quando vai abrir a Scene
[TUTORIAL] Mudando material
Procuro programador Unity para jogo 2D
AJUDA REALISTIC CAR CONTROLLER
Chama para isqueiro
[RESOLVIDO] Ajuda para destruir objeto
Unity - Sistema de Giro da Tela - Ajuda pfv!
Unity - Touch na Tela do Celular
Dawn Of Hell - Horror Game BR (2022-2023)
Unity - Jogo online ou offline?
ANIMAÇÃO INIMIGO ESTÁ INDO PRA TUDO QUANTO É LADO
[RESOLVIDO] Erro de Script no Android
Bundle Assets, Resources, e Addressables
Jogo online (qual a melhor opção?)
Dúvida sobre como criar o inimigo IA!
Unity dando pause no jogo a cada 4 segundos
bom dia amigos eu sou meio lego nos scripts será que alguem pode me ajudar
JOGO "CHALLENGE" FINALIZADO E DISPONÍVEL PARA BAIXAR.
error CS0246
[TUTORIAL]Como Chamar Um Método Usando Uma String como Parametro
[TUTORIAL] Sistema de FPS com Corpo
NullReferenceException: Object reference not set to an instance
dúvida ao criar subscription no play console
Unity - Scene Demorando pra abrir
Erro Slider de Cor
Alguem sabe que tipo de antena é essa ?
Encontrando um ponto de colisão.
Preciso de vocess! Coisinha simples mais me embananei. Meu primeiro game.
[TUTORIAL] Como carregar uma cena em segundo plano?
push notification com firebase falha
PROCURO UMA EQUIPE - Pagamento VIA PIX
Testem Meu Novo Jogo WEBGL ANDROIDD
ajuste de tela automático de celular
como fazer um chat interativo offline?
Música grátis para Jogos Indies [Calma, Relaxante, Flauta e outras coisas]
PROCURO PROGRAMADOR EXPERIENTE PHOTON
problema com canvas ui button
Banco de dados em Unity v2021.3.4f1
Sistema de Yu-Gi-Oh! - LINK PARA DOWNLOAD 2023
Int de dinheiro fica com numeros negativos em vez de travar no "0"
UNITY - FORMAÇÃO DE EQUIPE
[TUTORIAL] Open World Project - Para Unity-
Tutorial + Kit Para Criar seu Game Multiplayer em 5 Minutos
Como fazer movimentação no estilo tunnel Rush
[RESOLVIDO] Ajuste de tela
Debugar erro ao fechar build do projeto
[RESOLVIDO] Como Suavizar transição de uma Animação pra outra
[RESOLVIDO] Fixar tamanho/resolução proporcional da janela da aplicação
Como faço pra chamar a funçao de um script em outro ?
[RESOLVIDO] Alterar variaveis de classes instanciadas no inspector
como fazer o objeto spawnar com uma cor aleatória dentre as que eu quero?
Blender-Cell Fracture - Juntar as Animações de Todos os Fragmentos em 1 só
Oque acham dessa pequena música?
Unity - Faz mal ou tem algum problema se usar mts Layers?
Drag and drop em um rect específico da UI
Inimigo mudar de animação
[RESOLVIDO] Texto aparecer tipo donkey kong
De 0 a 10, qual a chance de isso causar problemas legais ao vender o jogo?
Teaser do meu novo projeto, War land
SCRIPT QUE SALVA A CENA INTEIRA.
datebest.net - visit link to find love or quick sex !
[RESOLVIDO] Dropdown Salvar a Resolução da tela
[RESOLVIDO] Visual Studio - Como saber onde um método está sendo usado
Teste Chat Openai
Como alterar um GameObject dentro de uma array
Baixos Brasil - Jogo de Carro Brasileiro!
Erro il2cpp unity 2022
[RESOLVIDO] "Is Trigger" não funcionando
FORMAÇÃO DE EQUIPE UNITY 3D
Equipamento para usar no Cinemachine
[RESOLVIDO] Destruir objetos com o mesmo id
Salvar seleção do Toggle
Fiz uma música orquestral para uma batalha final contra um Boss
Como você foi Hackeado DENOVO!!!???
PROCURO UMA EQUIPE - Pagamento VIA Pix
PROCURO PROGRAMADOR EXPERIENTE EM MIRROR
Visual Studio - Como abrir um Script com determinada configuração?
Mover objeto no eixo y
EXPORTAR CENA EM FORMATO DE VIDEO?
LANÇAMENTO JOGO DE CARRO E MOTO PARA ANDROID
Como fazer um sistema para trocar musica da cena com DROPDOWN?
SOU MODELADOR
Qui Mar 23, 2023 4:52 pm
Ter Mar 21, 2023 11:20 pm
Ter Mar 21, 2023 8:52 pm
Ter Mar 21, 2023 4:00 pm
Sáb Mar 18, 2023 8:41 pm
Sáb Mar 18, 2023 4:35 pm
Sex Mar 17, 2023 3:12 pm
Sex Mar 17, 2023 1:24 pm
Seg Mar 13, 2023 10:45 pm
Seg Mar 13, 2023 9:48 pm
Seg Mar 13, 2023 8:24 pm
Seg Mar 13, 2023 7:17 pm
Dom Mar 12, 2023 10:27 pm
Dom Mar 12, 2023 7:22 pm
Sex Mar 10, 2023 8:26 pm
Sex Mar 10, 2023 8:00 pm
Qui Mar 09, 2023 9:05 am
Ter Mar 07, 2023 2:27 pm
Sex Mar 03, 2023 6:47 pm
Sex Mar 03, 2023 12:01 am
Qui Mar 02, 2023 4:00 pm
Qui Mar 02, 2023 1:35 pm
Qua Mar 01, 2023 5:47 pm
Qua Mar 01, 2023 2:11 am
Seg Fev 27, 2023 11:08 pm
Seg Fev 27, 2023 7:19 pm
Dom Fev 26, 2023 11:49 pm
Dom Fev 26, 2023 8:29 pm
Dom Fev 26, 2023 7:47 pm
Dom Fev 26, 2023 7:46 pm
Dom Fev 26, 2023 6:08 pm
Sáb Fev 25, 2023 8:16 pm
Seg Fev 13, 2023 7:02 pm
Seg Fev 13, 2023 2:44 am
Dom Fev 12, 2023 9:57 pm
Dom Fev 12, 2023 2:19 pm
Sáb Fev 11, 2023 1:01 pm
Sex Fev 10, 2023 11:14 pm
Sex Fev 10, 2023 8:18 pm
Sex Fev 10, 2023 7:46 pm
Qui Fev 09, 2023 11:29 pm
Qui Fev 09, 2023 11:01 pm
Qui Fev 09, 2023 5:42 pm
Qua Fev 08, 2023 2:20 pm
Ter Fev 07, 2023 11:47 pm
Seg Fev 06, 2023 8:24 pm
Seg Fev 06, 2023 5:40 pm
Dom Fev 05, 2023 12:53 am
Sáb Fev 04, 2023 3:42 pm
Sáb Fev 04, 2023 2:29 pm
Sáb Fev 04, 2023 12:07 am
Sex Fev 03, 2023 10:53 pm
Sex Fev 03, 2023 10:28 pm
Qui Fev 02, 2023 7:52 pm
Qui Fev 02, 2023 8:49 am
Qua Fev 01, 2023 5:56 pm
Ter Jan 31, 2023 1:00 am
Dom Jan 29, 2023 11:12 pm
Sáb Jan 28, 2023 6:50 pm
Sex Jan 27, 2023 8:52 pm
Sex Jan 27, 2023 4:53 am
Qui Jan 26, 2023 10:56 pm
Dom Jan 22, 2023 11:53 am
Dom Jan 22, 2023 3:33 am
Sáb Jan 21, 2023 3:27 pm
Sáb Jan 21, 2023 2:15 pm
Sex Jan 20, 2023 4:30 pm
Sex Jan 20, 2023 2:15 pm
Qua Jan 18, 2023 10:19 pm
Qua Jan 18, 2023 9:47 am
Ter Jan 17, 2023 10:52 pm
Ter Jan 17, 2023 4:08 pm
Ter Jan 17, 2023 2:45 pm
Seg Jan 16, 2023 7:20 pm
Seg Jan 16, 2023 12:18 pm
Dom Jan 15, 2023 3:02 pm
Sáb Jan 14, 2023 7:02 pm
Sex Jan 13, 2023 8:29 am
Qui Jan 12, 2023 5:15 am
Qui Jan 12, 2023 2:31 am
Qua Jan 11, 2023 1:33 pm
Ter Jan 10, 2023 11:55 am
Ter Jan 10, 2023 10:58 am
Ter Jan 10, 2023 3:04 am
Seg Jan 09, 2023 10:43 pm
Seg Jan 09, 2023 6:30 am
Seg Jan 09, 2023 3:18 am
Seg Jan 09, 2023 2:32 am
Sáb Jan 07, 2023 5:55 pm
Sáb Jan 07, 2023 4:01 pm
Sáb Jan 07, 2023 1:38 pm
Sex Jan 06, 2023 9:15 am
Sex Jan 06, 2023 6:33 am
Qui Jan 05, 2023 5:27 pm
Qui Jan 05, 2023 2:50 pm
Qua Jan 04, 2023 3:07 pm
Qua Jan 04, 2023 9:19 am
Sáb Dez 31, 2022 4:38 pm
Sáb Dez 31, 2022 3:18 am



































































































[RESOLVIDO] Ajuste de tela

2 participantes

Ir para baixo

Resolvido [RESOLVIDO] Ajuste de tela

Mensagem por AGAMENOM Sáb Jan 21, 2023 8:06 pm

Fiz um script que a função dele é manter o tamanho da proporções da tela em qualquer PC.
E isso deve ser com as configurações de câmera no "orthographic" e não "perspective".
Mas nada funcionou.

ja tentei aviar e desativar o Resizable Window.
já tentei vários métodos na internet.
E nada ele não muda o tamanho da tela não importa em que PC ele esteja.

então gostaria de saber se alguém sabe como resolver isso.

Código:
using UnityEngine;

public class ScreenAdjustment : MonoBehaviour
{
    [Header("Size of my pc")]
    [SerializeField] private float WidthOfMyPc = 1920;
    [SerializeField] private float HeightOfMyPc = 1080f;
    [Header("Desired Size")]
    [SerializeField] private float WidthDesired = 1600;
    [SerializeField] private float HeightDesired = 900;
    [Header("Current PC size")]
    [SerializeField] private float WidthCurrent;
    [SerializeField] private float HeightCurrent;
    [Header("Difference")]
    [SerializeField] private float WidthDifference;
    [SerializeField] private float HeightDifference;
    [Header("Correct Size to Place")]
    [SerializeField] private float WidthPlace;
    [SerializeField] private float HeightPlace;
    [Header("If the Size is Bigger or Smaller than my pc")]
    [SerializeField] private bool IsBigger;

    void Start()
    {
        InvokeRepeating("AdjustScreen", 0f, 0.5f);
    }

    private void AdjustScreen()
    {
        WidthCurrent = Screen.width;
        HeightCurrent = Screen.height;
        WidthDifference = WidthOfMyPc - WidthCurrent;
        HeightDifference = HeightOfMyPc - HeightCurrent;
        if (WidthCurrent > WidthOfMyPc || HeightCurrent > HeightOfMyPc)
        {
            IsBigger = true;
        }
        else
        {
            IsBigger = false;
        }
        if (IsBigger)
        {
            WidthPlace = WidthDesired + WidthDifference;
            HeightPlace = HeightDesired + HeightDifference;
        }
        else
        {
            WidthPlace = WidthDesired - WidthDifference;
            HeightPlace = HeightDesired - HeightDifference;
        }
        Camera.main.fieldOfView = Mathf.Atan(HeightPlace / WidthPlace) * Mathf.Rad2Deg * 0.5f;
    }
}

Lógica:

Em "Size of my pc" eu coloco o tamanho do meu pc.
Em "Desired Size" o tamanho que quero.
no "Current PC size" o tamanho do pc atual.

ai no "Difference" vai calcular qual é a diferença entre o tamanho do "Size of my pc" e do "Current PC size" e aplicar nas variáveis.

Ai na "If the Size is Bigger or Smaller than my pc" se a tela for maior do que a do "Size of my pc" a bool fica verdadeira. caso contrário fica como falso.

Ai vai fazer uma conta de mais ou menos com os valores do "Desired Size" e do "Difference". ai se bool for verdadeira a conta será uma conta de mais.
Se for falso será uma conta de menos.
Ai o resultado coloca no "Correct Size to Place".
E o que tiver no "Correct Size to Place" aplica o tamanho da tela do jogo.
AGAMENOM
AGAMENOM
Avançado
Avançado

Masculino PONTOS : 1161
REPUTAÇÃO : 15
Idade : 20
Respeito as regras : [RESOLVIDO] Ajuste de tela WvDYdlf

https://paradoxicaltimegam.wixsite.com/paradoxicaltime

Ir para o topo Ir para baixo

Resolvido Re: [RESOLVIDO] Ajuste de tela

Mensagem por Magnatah Dom Jan 22, 2023 12:03 am

Otimizei o script e fiz algumas alterações, Vê se pode te ajudar:
Código:
using UnityEngine;

public class ScreenAdjustment : MonoBehaviour
{
    [Header("Desired Size")]
    [SerializeField] private Vector2 desiredSize = new Vector2(1600, 900);
    [Header("If the Size is Bigger or Smaller than my pc")]
    [SerializeField] private bool adjustForBiggerScreens = true;
    private Camera mainCamera;
    private float aspectRatio;

    private void Start()
    {
        mainCamera = Camera.main;
        aspectRatio = desiredSize.x / desiredSize.y;
        InvokeRepeating("AdjustScreen", 0f, 0.5f);
    }

    private void AdjustScreen()
    {
        float currentAspectRatio = (float)Screen.width / Screen.height;
        if ((adjustForBiggerScreens && currentAspectRatio > aspectRatio) || (!adjustForBiggerScreens && currentAspectRatio < aspectRatio))
        {
            mainCamera.fieldOfView = Mathf.Atan(currentAspectRatio / aspectRatio) * Mathf.Rad2Deg * 0.5f;
        }
    }
}

Removi as variáveis que não são mais necessárias, como "WidthOfMyPc" e "HeightOfMyPc", pois essas informações já são fornecidas pelo Screen.width e Screen.height.

- Usei uma variável Vector2 para armazenar o tamanho desejado da tela, ao invés de usar duas variáveis separadas.

- Removi as variáveis "WidthCurrent", "HeightCurrent", "WidthDifference" e "HeightDifference", pois elas não são mais necessárias.

- Usei uma variável booleana "adjustForBiggerScreens" para determinar se o script deve ajustar a tela quando ela for maior ou menor do que o tamanho desejado.

- Armazenei uma referência para a câmera principal no início do script, ao invés de buscá-la a cada chamada da função "AdjustScreen".

- Armazenei a proporção desejada no início do script, ao invés de calculá-la a cada chamada da função "AdjustScreen".
Magnatah
Magnatah
Instrutor

Masculino PONTOS : 2841
REPUTAÇÃO : 188
Idade : 27
Áreas de atuação : Dєรєиvσlvєdσя Wєb(Fяσит-єиd), Blєиdєя, υиiтy, C#, ρнρ є Jαvαรcяiρт.
Respeito as regras : [RESOLVIDO] Ajuste de tela Aad8pUi

https://www.instagram.com/ampercygames/

Ir para o topo Ir para baixo

Resolvido Re: [RESOLVIDO] Ajuste de tela

Mensagem por AGAMENOM Dom Jan 22, 2023 8:47 am

Sinto muito cara.
Mas não deu muito certo.
A ideia do script é que ele mantenha o tamanho da janela do jogo proposicional em todos os pc e não so no meu pc.
Por isso tinha aquelas contas todas antes.
AGAMENOM
AGAMENOM
Avançado
Avançado

Masculino PONTOS : 1161
REPUTAÇÃO : 15
Idade : 20
Respeito as regras : [RESOLVIDO] Ajuste de tela WvDYdlf

https://paradoxicaltimegam.wixsite.com/paradoxicaltime

Ir para o topo Ir para baixo

Resolvido Re: [RESOLVIDO] Ajuste de tela

Mensagem por AGAMENOM Dom Jan 22, 2023 1:48 pm

Bem consigo arrumar para quando ele esta em um monitor com uma tela menor doque ado meu pc.
Mas quando esta maior ele não funsiona.

Código:
using UnityEngine;

public class ScreenAdjustment : MonoBehaviour
{
    [Header("Size of my pc")]
    [SerializeField] private float WidthOfMyPc = 1920; // The width of my PC screen.
    [SerializeField] private float HeightOfMyPc = 1080f; // The height of my PC screen.

    [Header("Desired Size")]
    [SerializeField] private float WidthDesired = 1600; // The desired width of the game screen.
    [SerializeField] private float HeightDesired = 900; // The desired height of the game screen.

    [Header("Current PC size")]
    [SerializeField] private float WidthCurrent; // The current width of the game screen.
    [SerializeField] private float HeightCurrent; // The current height of the game screen.

    [Header("Difference")]
    [SerializeField] private float WidthDifference; // The difference between the desired width and the current width.
    [SerializeField] private float HeightDifference; // The difference between the desired height and the current height.

    [Header("Correct Size to Place")]
    [SerializeField] private float WidthPlace; // The correct width to place the game screen.
    [SerializeField] private float HeightPlace; // The correct height to place the game screen.

    [Header("If the Size is Bigger or Smaller than my pc")]
    [SerializeField] private bool IsBigger; // A flag to check whether the game screen is bigger or smaller than my PC screen.
    /*
    void Start()
    {
        // Call the AdjustScreen method every 0.5 seconds.
        InvokeRepeating("AdjustScreen", 0f, 0.5f);
    }*/

    void Start()
    /*private void AdjustScreen()*/
    {
        // Get the current width of the game screen.
        WidthCurrent = Screen.width;

        // Get the current height of the game screen.
        HeightCurrent = Screen.height;

        // Calculate the difference between the desired width and the current width.
        WidthDifference = WidthOfMyPc - WidthCurrent;

        // Calculate the difference between the desired height and the current height.
        HeightDifference = HeightOfMyPc - HeightCurrent;

        if (WidthCurrent > WidthOfMyPc || HeightCurrent > HeightOfMyPc)
        {
            // If the game screen is bigger than my PC screen, set the flag to true.
            IsBigger = true;
        }
        else
        {
            // If the game screen is smaller than my PC screen, set the flag to false.
            IsBigger = false;
        }

        if (IsBigger)
        {
            // Calculate the correct width to place the game screen if it's bigger than my PC screen.
            WidthPlace = WidthDesired + WidthDifference;

            // Calculate the correct height to place the game screen if it's bigger than my PC screen.
            HeightPlace = HeightDesired + HeightDifference;
        }
        else
        {
            // Calculate the correct width to place the game screen if it's smaller than my PC screen.
            WidthPlace = WidthDesired - WidthDifference;

            // Calculate the correct height to place the game screen if it's smaller than my PC screen.
            HeightPlace = HeightDesired - HeightDifference;
        }

        if (IsBigger)
        {
            if (WidthCurrent > WidthDesired || HeightCurrent > HeightDesired)
            {
                // Set the game screen to the correct size if the current size is larger than the desired size.
                Screen.SetResolution((int)WidthPlace, (int)HeightPlace, Screen.fullScreen);
            }
        }
        else
        {
            if (WidthCurrent < WidthDesired || HeightCurrent < HeightDesired)
            {
                // Set the game screen to the correct size if the current size is smaller than the desired size.
                Screen.SetResolution((int)WidthPlace, (int)HeightPlace, Screen.fullScreen);
            }
        }
    }
}
AGAMENOM
AGAMENOM
Avançado
Avançado

Masculino PONTOS : 1161
REPUTAÇÃO : 15
Idade : 20
Respeito as regras : [RESOLVIDO] Ajuste de tela WvDYdlf

https://paradoxicaltimegam.wixsite.com/paradoxicaltime

Ir para o topo Ir para baixo

Resolvido Re: [RESOLVIDO] Ajuste de tela

Mensagem por AGAMENOM Qui Jan 26, 2023 10:56 pm

Conseguir arrumar o script.

Código:
using UnityEngine;

public class ScreenAdjustment : MonoBehaviour
{
    [Header("Size of my pc")]
    [SerializeField] private float WidthOfMyPc = 1920; // The width of my PC screen.
    [SerializeField] private float HeightOfMyPc = 1080f; // The height of my PC screen.

    [Header("Desired Size")]
    [SerializeField] private float WidthDesired = 1600; // The desired width of the game screen.
    [SerializeField] private float HeightDesired = 900; // The desired height of the game screen.

    [Header("Current PC size")]
    [SerializeField] private float WidthCurrent; // The current width of the game screen.
    [SerializeField] private float HeightCurrent; // The current height of the game screen.

    [Header("Difference")]
    [SerializeField] private float WidthDifference; // The difference between the desired width and the current width.
    [SerializeField] private float HeightDifference; // The difference between the desired height and the current height.

    [Header("Correct Size to Place")]
    [SerializeField] private float WidthPlace; // The correct width to place the game screen.
    [SerializeField] private float HeightPlace; // The correct height to place the game screen.

    [Header("If the Size is Bigger or Smaller than my pc")]
    [SerializeField] private bool IsBigger; // A flag to check whether the game screen is bigger or smaller than my PC screen.

    [Header("Has Already been Changed?")]
    [SerializeField] private bool IsChanged; // A flag to check if the game screen has already been changed in the PC sky.
    [SerializeField] private string SaveName = "SizeIsChanged"; // PlayerPrefs Save Name.

    void Start()
    {
        // Load the value of SaveName from player prefs
        IsChanged = PlayerPrefs.GetInt(SaveName, 0) == 1;

        // Get the current width of the PC screen.
        WidthCurrent = Screen.currentResolution.width;

        // Get the current height of the PC screen.
        HeightCurrent = Screen.currentResolution.height;

        // Calculate the difference between the desired width and the current width.
        WidthDifference = WidthOfMyPc - WidthCurrent;

        // Calculate the difference between the desired height and the current height.
        HeightDifference = HeightOfMyPc - HeightCurrent;

        if (WidthCurrent > WidthOfMyPc || HeightCurrent > HeightOfMyPc)
        {
            // If the game screen is bigger than my PC screen, set the flag to true.
            IsBigger = true;
        }
        else
        {
            // If the game screen is smaller than my PC screen, set the flag to false.
            IsBigger = false;
        }

        if (IsBigger)
        {
            // Calculate the correct width to place the game screen if it's bigger than my PC screen.
            WidthPlace = WidthDesired - WidthDifference;

            // Calculate the correct height to place the game screen if it's bigger than my PC screen.
            HeightPlace = HeightDesired - HeightDifference;
        }
        else
        {
            // Calculate the correct width to place the game screen if it's smaller than my PC screen.
            WidthPlace = WidthDesired - WidthDifference;
            // Calculate the correct height to place the game screen if it's smaller than my PC screen.
            HeightPlace = HeightDesired - HeightDifference;
        }

        // Check if the SaveName flag has been saved before
        if (PlayerPrefs.HasKey(SaveName))
        {
            // If saved, get the value of the flag
            IsChanged = PlayerPrefs.GetInt(SaveName) == 1 ? true : false;
        }
        else
        {
            // If not saved, set the flag to false
            IsChanged = false;
        }

        if (IsBigger)
        {
            if (IsChanged == false)
            {
                // Set the game screen to the correct size if the current size is larger than the desired size.
                Screen.SetResolution((int)WidthPlace, (int)HeightPlace, Screen.fullScreen);
                // Save the flag as true
                PlayerPrefs.SetInt(SaveName, 1);
            }
        }
        else
        {
            if (IsChanged == false)
            {
                // Set the game screen to the correct size if the current size is smaller than the desired size.
                Screen.SetResolution((int)WidthPlace, (int)HeightPlace, Screen.fullScreen);
                // Save the flag as true
                PlayerPrefs.SetInt(SaveName, 1);
            }
        }
    }
}
AGAMENOM
AGAMENOM
Avançado
Avançado

Masculino PONTOS : 1161
REPUTAÇÃO : 15
Idade : 20
Respeito as regras : [RESOLVIDO] Ajuste de tela WvDYdlf

https://paradoxicaltimegam.wixsite.com/paradoxicaltime

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos