'프로그래밍'에 해당되는 글 111건

  1. 2019.03.29 메시 바운드 판별 코드
  2. 2019.03.22 카메라 앞뒤판별 코드
  3. 2019.03.20 OcclusionFx shader
  4. 2019.03.18 젠킨스 라이트맵 빌드 세팅
  5. 2019.03.06 셰이더 강좌
  6. 2019.02.22 코루틴 심화
  7. 2019.02.22 C# foreach 가비지
  8. 2019.02.22 대마왕님 블로그
  9. 2019.02.15 enum extention 예시
  10. 2019.02.15 ipv4 ipv6 차이점
프로그래밍/유니티2019. 3. 29. 15:16

var combinedBounds = renderer.bounds;

var renderers = GetComponentsInChildren(Renderer);

for (var render : Renderer in renderers) {

if (render != renderer) combinedBounds.Encapsulate(render.bounds);

}

'프로그래밍 > 유니티' 카테고리의 다른 글

UGUI 최적화  (0) 2019.04.08
multiple camera target  (0) 2019.03.29
카메라 앞뒤판별 코드  (0) 2019.03.22
코루틴 심화  (0) 2019.02.22
C# foreach 가비지  (0) 2019.02.22
Posted by JinFluenza
프로그래밍/유니티2019. 3. 22. 17:02

 private void CheckTargetFrontOfCamera()

    {

        if (mCamera == null || Target == null) return;


        Vector3 camFoward = mCamera.transform.forward;

        Vector3 objectDir = Target.position - mCamera.transform.position;


        float dotValue = Vector3.Dot(camFoward, objectDir);


        isTargetFrontOfCamera.Value = dotValue > 0 ? true : false;

    }



'프로그래밍 > 유니티' 카테고리의 다른 글

multiple camera target  (0) 2019.03.29
메시 바운드 판별 코드  (0) 2019.03.29
코루틴 심화  (0) 2019.02.22
C# foreach 가비지  (0) 2019.02.22
TextMeshPro 가비지 최적화  (0) 2019.02.13
Posted by JinFluenza
프로그래밍/셰이더2019. 3. 20. 18:07

https://youtu.be/KaicBpIdes4

'프로그래밍 > 셰이더' 카테고리의 다른 글

셰이더 디버깅  (0) 2019.04.04
빌보드,거리에따른 스케일  (0) 2019.04.01
셰이더 강좌  (0) 2019.03.06
대마왕님 블로그  (0) 2019.02.22
유니티 셰이더 최적화팁  (0) 2018.08.01
Posted by JinFluenza
프로그래밍/Jenkins2019. 3. 18. 11:14

 //매개변수 처리

        string[] args = System.Environment.GetCommandLineArgs();


        if (args.Length <= 0) return;


        string sceneParams = args[args.Length - 1];


        //매개변수에서 씬 이름 분리

        string[] sceneNames = sceneParams.Split(',');


        //번들 폴더에서 .unity 확장자로된파일 찾아서 경로 반환

        string[] path = Directory.GetFiles(Application.dataPath + "/Bundle", "*.unity", SearchOption.AllDirectories);



        for (int i = 0; i < path.Length; i++)

        {

            for (int j = 0; j < sceneNames.Length; j++)

            {

                //대소문자 판별 안하도록 수정하면 좋을듯

                if (path[i].Contains(sceneNames[j]) == true)

                {

                    Debug.Log($"Build LightMap : {sceneNames[j]}");


                    EditorSceneManager.OpenScene(path[i], OpenSceneMode.Single);

                    LightmapEditorSettings.textureCompression = true;

                    Lightmapping.Bake();

                    continue;

                }

            }


        }


Posted by JinFluenza
프로그래밍/셰이더2019. 3. 6. 12:31

ztest 등등

https://m.blog.naver.com/PostView.nhn?blogId=ateliersera&logNo=220398051030&proxyReferer=https%3A%2F%2Fwww.google.com%2F

'프로그래밍 > 셰이더' 카테고리의 다른 글

빌보드,거리에따른 스케일  (0) 2019.04.01
OcclusionFx shader  (0) 2019.03.20
대마왕님 블로그  (0) 2019.02.22
유니티 셰이더 최적화팁  (0) 2018.08.01
unity shader pragma  (0) 2018.07.01
Posted by JinFluenza
프로그래밍/유니티2019. 2. 22. 11:09

http://blog.naver.com/PostView.nhn?blogId=dlwhdgur20&logNo=221016173139&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView

Posted by JinFluenza
프로그래밍/유니티2019. 2. 22. 10:59

http://blog.naver.com/PostView.nhn?blogId=dlwhdgur20&logNo=221015850179&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView

'프로그래밍 > 유니티' 카테고리의 다른 글

카메라 앞뒤판별 코드  (0) 2019.03.22
코루틴 심화  (0) 2019.02.22
TextMeshPro 가비지 최적화  (0) 2019.02.13
인스펙터를 어트리뷰트로 예쁘게 만들어주기  (0) 2019.02.13
textmeshpro 최적화  (0) 2019.02.08
Posted by JinFluenza
프로그래밍/셰이더2019. 2. 22. 00:23

https://chulin28ho.tistory.com/481?category=822622

'프로그래밍 > 셰이더' 카테고리의 다른 글

OcclusionFx shader  (0) 2019.03.20
셰이더 강좌  (0) 2019.03.06
유니티 셰이더 최적화팁  (0) 2018.08.01
unity shader pragma  (0) 2018.07.01
서피스 버텍스 빌보드  (0) 2018.06.29
Posted by JinFluenza
프로그래밍/C#2019. 2. 15. 14:31

public static class ClubTypeToStringKey

{

    private static Dictionary<CLUB_TYPE, StringTableKeys> typeTostringKey

        = new Dictionary<CLUB_TYPE, StringTableKeys>();


    public static StringTableKeys ToStringKey(this CLUB_TYPE type)

    {

        if(typeTostringKey.ContainsKey(type))

        {

            return typeTostringKey[type];

        }


        StringTableKeys result;

        if (Enum.TryParse(type.ToString(), out result))

        {

            typeTostringKey.Add(type, result);

        }


        return typeTostringKey[type];

    }

}

'프로그래밍 > C#' 카테고리의 다른 글

const , nonconst  (0) 2018.10.12
코드 교정?  (0) 2018.08.29
스트림이란??  (0) 2018.07.31
var  (0) 2018.04.11
캘린더  (0) 2018.03.28
Posted by JinFluenza
프로그래밍/기타2019. 2. 15. 12:20

https://www.ibm.com/support/knowledgecenter/ko/ssw_ibm_i_73/rzai2/rzai2compipv4ipv6.htm

'프로그래밍 > 기타' 카테고리의 다른 글

개인정보취급방침 (Light Block)  (0) 2019.10.24
MVC 패턴  (0) 2018.12.17
vs 단축키  (0) 2018.12.14
unity svn ignore  (0) 2018.05.20
IOS cocoapods  (0) 2018.05.12
Posted by JinFluenza