8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

Java Spring 应用程序不知为何被终止,没有留下任何痕迹

RARE Kpop Manifesto 2月前

47 0

我正在寻找一种解决方案,以便在我的 2D 游戏中的等距场景中正确对对象进行排序目前我正在使用这种方法:int itemSortingOrder = - (int) (item.GameObject.transform.parent.trans...

我正在寻找一种解决方案,以便在我的 2D 游戏中的等距场景中正确对对象进行排序

Wrong sorting

目前我正在使用这种方法:

int itemSortingOrder = - (int) (item.GameObject.transform.parent.transform.position.y * 1000);

但问题是,它 transform.position 被存储为 WorldCoordinates,Object's coordinates in Unity inspector当单个单元格周围的几面墙具有相同的坐标时,就会导致问题。我通过不仅计算项目的位置,还添加对象的“边界”来解决了这个问题:Green diamonds - bounds of the object

但我觉得我选择了错误的方法,应该以其他方式解决这个问题。

您能就场景中物体的排序方法提供一些建议吗?

帖子版权声明 1、本帖标题:Java Spring 应用程序不知为何被终止,没有留下任何痕迹
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由RARE Kpop Manifesto在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 我正在尝试按照官方安装页面上的说明在 Ubuntu(WSL)上安装 miniconda:https://docs.anaconda.com/free/miniconda/miniconda-install/我可以下载包...

    我正在尝试按照官方安装页面上的说明在 Ubuntu(WSL)上安装 miniconda: https://docs.anaconda.com/free/miniconda/miniconda-install/

    我可以下载该软件包,但在安装时,我收到如下所示的错误消息-

    Miniconda3 will now be installed into this location:
    /home/suma/miniconda3
    
      - Press ENTER to confirm the location
      - Press CTRL-C to abort the installation
      - Or specify a different location below
    
    [/home/suma/miniconda3] >>>
    PREFIX=/home/suma/miniconda3
    Unpacking payload ...
    
    Installing base environment...
    
    
    # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
    
        Traceback (most recent call last):
          File "conda/exception_handler.py", line 17, in __call__
          File "conda/cli/main.py", line 66, in main_subshell
          File "conda/base/context.py", line 472, in __init__
          File "conda/common/configuration.py", line 1416, in _set_search_path
          File "boltons/setutils.py", line 125, in __init__
          File "boltons/setutils.py", line 355, in update
          File "conda/common/configuration.py", line 1389, in _expand_search_path
          File "pathlib.py", line 1322, in is_file
          File "pathlib.py", line 1097, in stat
        PermissionError: [Errno 13] Permission denied: '/home/chandsum/miniconda3/.condarc'
    
    `$ /home/suma/miniconda3/_conda install --offline --file /home/suma/miniconda3/pkgs/env.txt -yp /home/suma/miniconda3`
    
      environment variables:
                     CIO_TEST=<not set>
               CONDA_CHANNELS=https://repo.anaconda.com/pkgs/main,https://repo.anaconda.com/pkgs/r
            CONDA_DEFAULT_ENV=base
                    CONDA_EXE=/home/chandsum/miniconda3/bin/conda
    CONDA_EXTRA_SAFETY_CHECKS=no
              CONDA_PKGS_DIRS=/home/suma/miniconda3/pkgs
                 CONDA_PREFIX=/home/chandsum/miniconda3
        CONDA_PROMPT_MODIFIER=(base)
             CONDA_PYTHON_EXE=/home/chandsum/miniconda3/bin/python
                  CONDA_QUIET=0
          CONDA_REGISTER_ENVS=true
                   CONDA_ROOT=/home/suma/miniconda3/install_tmp/_MEIR38PLO
            CONDA_ROOT_PREFIX=/home/suma/miniconda3
          CONDA_SAFETY_CHECKS=disabled
                  CONDA_SHLVL=1
               CURL_CA_BUNDLE=<not set>
              LD_LIBRARY_PATH=/home/suma/miniconda3/install_tmp/_MEIR38PLO
                   LD_PRELOAD=<not set>
          OLD_LD_LIBRARY_PATH=
                         PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game
                              s:/usr/local/games:/snap/bin
           REQUESTS_CA_BUNDLE=<not set>
                SSL_CERT_FILE=<not set>
    
         active environment : /home/chandsum/miniconda3
        active env location : /home/chandsum/miniconda3
                shell level : 1
           user config file : /home/suma/.condarc
     populated config files :
              conda version : 24.1.2
        conda-build version : not installed
             python version : 3.10.13.final.0
                     solver : libmamba (default)
           virtual packages : __archspec=1=skylake
                              __conda=24.1.2=0
                              __cuda=11.6=0
                              __glibc=2.35=0
                              __linux=5.15.146.1=0
                              __unix=0=0
           base environment : /home/suma/miniconda3/install_tmp/_MEIR38PLO  (read only)
          conda av data dir : /home/suma/miniconda3/install_tmp/_MEIR38PLO/etc/conda
      conda av metadata url : None
               channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                              https://repo.anaconda.com/pkgs/main/noarch
                              https://repo.anaconda.com/pkgs/r/linux-64
                              https://repo.anaconda.com/pkgs/r/noarch
              package cache : /home/suma/miniconda3/install_tmp/_MEIR38PLO/pkgs
                              /home/suma/.conda/pkgs
           envs directories : /home/suma/.conda/envs
                              /home/suma/miniconda3/install_tmp/_MEIR38PLO/envs
                   platform : linux-64
                 user-agent : conda/24.1.2 requests/2.31.0 CPython/3.10.13 Linux/5.15.146.1-microsoft-standard-WSL2 ubuntu/22.04.3 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6
                    UID:GID : 1001:1001
                 netrc file : None
               offline mode : False
    
    
    An unexpected error has occurred. Conda has prepared the above report.
    If you suspect this error is being caused by a malfunctioning plugin,
    consider using the --no-plugins option to turn off plugins.
    
    Example: conda --no-plugins install <package>
    
    Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
    the command line to run the command without plugins enabled.
    
    Example: CONDA_NO_PLUGINS=true conda install <package>
    
    If submitted, this report will be used by core maintainers to improve
    future releases of conda.
    Would you like conda to send this report to the core maintainers? [y/N]: y
    Upload did not complete.
    
    

    我检查了 SHA256 哈希,它与官方网站相符。有谁遇到过这个问题并解决了吗?

返回
作者最近主题: