Get it on Google Play


Wm뮤 :: '분류 전체보기' 카테고리의 글 목록 (25 Page)

블로그 이미지
가끔 그림그리거나 3D모델링하거나
취미로 로봇만드는
퇴직한 전자과 게임프로그래머
2020.3.48f1 , 2022.3.6f1 주로 사용
모카쨩
@Ahzkwid

Recent Comment

Archive


2022. 6. 18. 12:06 애플/스위프트

 

 

 

 

 

'애플 > 스위프트' 카테고리의 다른 글

스위프트 정적 라이브러리 생성방법  (0) 2021.05.03
유니티 스위프트 Unity Swift  (0) 2021.04.28
posted by 모카쨩
2022. 6. 18. 10:37 Unity

 

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using System.Runtime.InteropServices;
using System;

public class WindowPosition : MonoBehaviour
{

    public int x = 0;
    public int y = 0;
#if UNITY_STANDALONE_WIN

    [DllImport("user32.dll", EntryPoint = "SetWindowPos")]
    private static extern bool SetWindowPos(IntPtr hwnd, int hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);

    [DllImport("user32.dll", EntryPoint = "FindWindow")]
    public static extern IntPtr FindWindow(string className, string windowName);

    public IEnumerator SetWindowPosition(int x, int y)
    {
        yield return new WaitForEndOfFrame();
        yield return new WaitForEndOfFrame();
        SetWindowPos(FindWindow(null, Application.productName), 0, x, y, 0, 0, 5);
    }

    public IEnumerator SetWindowPosition(float x, float y)
    {
        StartCoroutine(SetWindowPosition(Screen.width * x, Screen.height * y));
        yield return null;
    }

#endif
    // Start is called before the first frame update
    void Start()
    {

#if UNITY_STANDALONE_WIN
        StartCoroutine(SetWindowPosition(x,y));

#endif
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}

https://forum.unity.com/threads/setting-player-window-position.534733/

이쪽 소스를 간략화 한 버전으로 만들어봤다

 

 

 

윈도우모드 설정시

 

 

'Unity' 카테고리의 다른 글

유니티 파티클, 트레일, 라인 렌더러  (0) 2023.01.21
유니티 csv 에셋  (0) 2022.04.30
유니티 차트  (0) 2022.04.24
posted by 모카쨩
2022. 6. 9. 18:02 깃허브

 

 

일반적으로 프로젝트를 끄고나서 올리면 해결된다

만약 그래도 안 된다면 아래를 참고

 

 

 

리눅스,맥 에서는 LF

초창기 맥에서는 CR

윈도우에서는 CRLF를 써서 발생하는 문제이다

 

 

윈도우 명령어

git config core.autocrlf true

 

리눅스,맥 명령어

git config core.autocrlf true input

 

저거 치면 자동변환된다

 

그러고도 안되면 그냥 프로젝트를 끄고 올리면 된다

'깃허브' 카테고리의 다른 글

깃허브 복사  (0) 2022.06.25
You have divergent branches and need to specify how to reconcile them  (0) 2022.05.17
소스트리 사용법  (0) 2022.02.19
posted by 모카쨩
2022. 5. 17. 12:49 깃허브

 

 

 

hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint: 
hint:   git config pull.rebase false  # merge
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.

 

 

분기있어서 그런건데

그냥 커밋 취소하고 Pull 받고 다시 커밋푸시하면 된다

'깃허브' 카테고리의 다른 글

warning: LF will be replaced by CRLF in  (0) 2022.06.09
소스트리 사용법  (0) 2022.02.19
깃허브 이슈관련  (0) 2022.01.11
posted by 모카쨩
2022. 4. 30. 14:08 웹/AWS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

bat파일은 이렇게 만든다

 

start C:\Users\User1\Desktop\파일명.jpg

텍스트 문서로 위같이 쓰고 확장자를 bat으로 변경

start 뒤에 경로만 넣어주면 그 파일들이 실행된다

 

 

 

 

 

만들었던 작업은 '작업 스케줄러 라이브러리'에서 확인이 가능하다

 

 

 

 

 

 

 

재부팅 코드는 이것

shutdown -r -t 0

' > AWS' 카테고리의 다른 글

AWS EC2 사용하기  (0) 2022.04.16
AWS 홈페이지 구축  (0) 2021.09.24
posted by 모카쨩
2022. 4. 30. 12:24 사용설명서

 

 

 

 

 

이제 저기탭으로 정리된다

'사용설명서' 카테고리의 다른 글

다이소 온습도계 사용설명서  (0) 2022.12.31
삼성플로우 사용법  (0) 2022.04.01
마이리빙 무드 가습기 MOD-02 설명서  (0) 2022.01.17
posted by 모카쨩
2022. 4. 30. 11:46 Unity

 

 

 

https://assetstore.unity.com/packages/tools/integration/csv-serialize-135763

 

CSV Serialize | 기능 통합 | Unity Asset Store

Use the CSV Serialize from VisualWorks on your next project. Find this integration tool & more on the Unity Asset Store.

assetstore.unity.com

 

 

 

 

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Demo : MonoBehaviour
{

    public Test[] tests;
    [System.Serializable]
    public class Test
    {
        public int num = 0;
        public string name = "";
    }
        // Start is called before the first frame update
    void Start()
    {

        var csv = "num,name\n0,\"mom\"\r\n1,dad\n\"2\",\"me\"\n\"3\",\"한국어\"";
        tests = CSVSerializer.Deserialize<Test>(csv);
        var list = CSVSerializer.ParseCSV(csv);
        for (int x = 0; x < list.Count; x++)
        {
            for (int y = 0; y < list[x].Length; y++)
            {
                Debug.Log($"[{x}][{y}]{list[x][y]}");
            }
        }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}

 

 

잘된다

'Unity' 카테고리의 다른 글

유니티 창위치 설정  (0) 2022.06.18
유니티 차트  (0) 2022.04.24
유니티 Log 확인 에셋  (0) 2022.04.23
posted by 모카쨩
2022. 4. 24. 01:16

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.


  • total
  • today
  • yesterday

Recent Post

저사양 유저용 블로그 진입