ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2023ǯ02·î15Æü(¿å) 08:55:49ÍúÎò
AR »þ¤Î¥Ç¥Ð¥Ã¥°ÊýË¡¡¢Ê¿ÌÌ´¶Ãε¡Ç½¤Ê¤É¤Ë¤Ä¤¤¤Æ³Ø½¬¤ò¹Ô¤¤¤Þ¤¹¡£
¼ê½ç£±¡¡¡¼AR ´Ä¶¤Î¹½ÃÛ¡¼
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦AR ´Ä¶¤Î¹½ÃÛ¡¡¡¼AR Foundation / XR Plugin Management / AR Core XR Plugin / AR Kit XR Plugin ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤È AR ÍÑÀßÄêÊýË¡¡¼ ¡¡¡¦AR Session ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Îµ¡Ç½¤ÎÀâÌÀ
¡¡Ê¿ÌÌ´¶ÃΤε¡Ç½¤òÍøÍѤ·¡¢´¶ÃΤ·¤¿ÃÏÅÀ¤ò¥¿¥Ã¥×¤·¤¿ºÝ¤Ë¥×¥ì¥Ï¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤ë£³£Ä¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¤Þ¤¹¡£
¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï¥Þ¥Æ¥ê¥¢¥ë¤òÍøÍѤ·¤Æ²èÁü¤òźÉÕ¤·É½¼¨¤µ¤»¤Þ¤¹¡£
¡¡¤³¤Î¼ê½ç¤ò£µ²ó¤Ëʬ¤±¤Æ³Ø½¬¤·¤Þ¤¹¡£
ºÇ½é¤Î£³²ó¤Ï ARÍÑ¥×¥í¥¸¥§¥¯¥È¤ÎÀßÄê¤È¥Ç¥Ð¥Ã¥°µ¡Ç½¤Ê¤É¤Î»öÁ°½àÈ÷¡¢»Ä¤ê£²²ó¤ÏÊ¿ÌÌ´¶Ãε¡Ç½¤Î¼ÂÁõ¤Ë¤Ê¤ê¤Þ¤¹¡£
Game ¥Ó¥å¡¼²èÁü(¥¨¥Ç¥£¥¿¡¼)
¡¡
¡¡¤³¤Á¤é¤¬´°À®¤·¤¿¤é¡¢È¯Å¸·Á¤È¤·¤Æ¡¢¥¿¥Ã¥×¤·¤¿»þÅÀ¤Ç¤¹¤°¤Ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢
¤Þ¤º¥¹¥¯¥í¡¼¥ë¥Ó¥å¡¼¤ò³«¤¡¢¤½¤ÎÃæ¤Ë¤¢¤ë¥µ¥à¥Í¥¤¥ë²èÁü¤òÁªÂò¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤½¤·¤Æ¡¢ÁªÂò¤·¤¿²èÁü¤¬ÅºÉÕ¤µ¤ì¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë¤è¤¦¤Ë²þÎɤ·¤Þ¤¹¡£
¡¡¤³¤Î²þÎɼê½ç¤Ç¤Ï¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤È¤¤¤Ã¤¿¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎºîÀ®ÊýË¡¤ÈÍøÍÑÊýË¡¡¢
Canvas Æâ¤Î¥¹¥¯¥í¡¼¥ë¥Ó¥å¡¼¤È¥¹¥¯¥í¡¼¥ë¥Ó¥å¡¼Æâ¤ËÊ£¿ô¤Î¥µ¥à¥Í¥¤¥ë¤ò¼«Æ°Åª¤ËÀ¸À®¤¹¤ëÊýË¡¤Ê¤É¡¢Â¿¤¯¤Îµ»½Ñ¤ò³Ø½¬¤·¤Þ¤¹¡£
´Êñ¤ÊÆâÍƤǤϤʤ¤¤¿¤á¡¢¤È¤ê¤¢¤¨¤ºÀ©ºî¤·¤Æ½ª¤ï¤ê¡¢¤Ç¤Ï¤Ê¤¯¡¢·«¤êÊÖ¤·¤Î³Ø½¬¤ò¤ª´«¤á¤·¤Þ¤¹¡£
¼Âµ¡
¡¡Unity ¤Î¾ì¹ç¡¢ºÇ½é¤«¤é AR ¤È¤·¤Æ¥²¡¼¥à¤òÀ½ºî¤·¤Æ¤¤¤¯°Ê³°¤Ë¤â¡¢´°À®¤·¤Æ¤¤¤ë¥×¥í¥¸¥§¥¯¥È¤ò AR ¤ËÂбþ¤µ¤»¤Æ¤¤¤¯¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¡¡AR ¤Ï³«È¯¤Î¤¿¤á¤ÎÁ°Äó¾ò·ï¤È¤·¤Æ¡¢¥¨¥Ç¥£¥¿¡¼(PC)¤ÇÀ½ºî¤·¤¿¤â¤Î¤Ç¤¢¤Ã¤Æ¤â¡¢¥¹¥Þ¥ÛüËö(¥Ç¥Ð¥¤¥¹)¤Ç¤·¤«µ¯Æ°¤Ç¤¤Þ¤»¤ó¡£
¤½¤Î¤¿¤á¡¢PC ¤Ë¤ª¤¤¤Æ³«È¯¤Ï¹Ô¤¤¤Þ¤¹¤¬¡¢Âбþ¤¹¤ë¥¹¥Þ¥ÛüËö¤¬¤Ê¤¤¤Èµ¯Æ°¥Æ¥¹¥È(¥Ç¥Ð¥Ã¥°)¤â¤Ç¤¤Ê¤¤¾õÂ֤Ǥ¹¡£
¸½ºß³«È¯Ãæ¤Î ARFoundation 5 ¥·¥ê¡¼¥º¤Ë¤ª¤¤¤Æ¤Ï¡¢¥¨¥Ç¥£¥¿¡¼¾å¤Ç¤Î¥Ç¥Ð¥Ã¥°¤¬²Äǽ¤Ë¤Ê¤ë¥·¥ß¥å¥ì¡¼¥¿µ¡Ç½¤¬¼ÂÁõ¤µ¤ì¤Þ¤¹¡£
¡¡Android üËö¤Î¾ì¹ç¤Ë¤Ï¡¢Windows PC ¤¬É¬Íפˤʤê¤Þ¤¹¡£
¡¡iOS üËö¤Î¾ì¹ç¤Ë¤Ï¡¢Mac ¤¬É¬Íפˤʤê¤Þ¤¹¡£
¡¡Î㤨¤Ð¡¢Android üËö¤ò»ý¤Ã¤Æ¤¤¤ë¤¬¡¢PC ¤Ï iOS(Mac) ¤òÍøÍѤ·¤Æ¤¤¤ë¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¢PC ¤Ç¤Î³«È¯¤Ï²Äǽ¤Ç¤¹¤¬¡¢¼Âµ¡¥Æ¥¹¥È¤Ï½ÐÍè¤Þ¤»¤ó¡£
µÕ¤Î¾ì¹ç¤âƱÍͤǤ¹¡£
¡¡PC ¤È¥Ç¥Ð¥¤¥¹¤ÎξÊý¤Î³«È¯´Ä¶¤¬À°¤Ã¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤«¤é¡¢´Ä¶¤Î¹½ÃÛ¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¸½ºß¤Î¾õ¶·¤Ë¤è¤ê¡¢¤³¤³¤«¤éÀè¤Î¼ê½ç¤¬°Û¤Ê¤ê¤Þ¤¹¡£
¿·¤·¤¯ AR ÍÑ¤Î¥×¥í¥¸¥§¥¯¥È¤òºîÀ®¤·¤Æ¤«¤é»Ï¤á¤ë¾ì¹ç¤Ë¤Ï¡¢¡Ú£±¡¥AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤Æ¥×¥í¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë¡Û¤ò¿Ê¤á¤Æ¤¯¤À¤µ¤¤¡£
´û¸¤Î¥×¥í¥¸¥§¥¯¥È¤ò AR ²½¤µ¤»¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢¡Ú£²¡¥´û¸¤Î¥×¥í¥¸¥§¥¯¥È¤Ë AR µ¡Ç½¤òÄɲ乤ë¡Û¤ò¿Ê¤á¤Æ¤¯¤À¤µ¤¤¡£
¡¡¿·µ¬¥×¥í¥¸¥§¥¯¥È¤ò AR ¥²¡¼¥à¤È¤·¤ÆºîÀ®¤¹¤ë¾ì¹ç¡¢¸½ºß¤Î UnityHub ¤Ç¤¢¤ì¤Ð¡¢AR ÍѤΥƥó¥×¥ì¡¼¥È¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤Á¤é¤òÍøÍѤ¹¤ì¤Ð¡¢É¬Íפʵ¡Ç½¤ò½àÈ÷¤·¤¿¾õÂÖ¤Ç AR ¤Î¥×¥í¥¸¥§¥¯¥È¤ò³«»Ï¤Ç¤¤Þ¤¹¡£
¡¡Unityhub ¤òµ¯Æ°¤·¡¢¥×¥í¥¸¥§¥¯¥È¤Î¿·µ¬ºîÀ®¤òÁªÂò¸å¡¢AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÁªÂò¤·¤Æ¡¢¥×¥í¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
¤³¤Î¥Æ¥ó¥×¥ì¡¼¥È¤ÏºÇ½é¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤»¤Æ¤¤¤Ê¤¤¤¿¤á¡¢¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤Ç Unityhub Æâ¤ÇÁªÂò¤Ç¤¤ë¾õÂ֤ˤʤê¤Þ¤¹¡£
¡¡UnityHub ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤ê²èÌ̤¬°Û¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢¤´¼«Ê¬¤Î¥Ð¡¼¥¸¥ç¥ó¤ËÃÖ¤´¹¤¨¤ÆÁàºî¤·¤Æ¤¯¤À¤µ¤¤¡£
Unityhub ¥Æ¥ó¥×¥ì¡¼¥ÈÁªÂò(UnityHub 2.x.x)
Unityhub ¥Æ¥ó¥×¥ì¡¼¥ÈÁªÂò(UnityHub 3.x.x)
¡¡AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÁªÂò¤¹¤ë¤È¡¢Unity ¤¬¼«Æ°Åª¤Ëµ¯Æ°¤·¡¢AR ÍѤε¡Ç½¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¥×¥í¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
¡¡Unity ¥¨¥Ç¥£¥¿¡¼¤¬³«¤¯¤È¡¢AR ¥Æ¥ó¥×¥ì¡¼¥È¤Î¾Ò²ð¥Ý¥Ã¥×¥¢¥Ã¥×¥¦¥¤¥ó¥É¥¦¤¬³«¤¤Þ¤¹¡£
¥É¥¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¤Î¾Ò²ð¤Ê¤É¤¬µºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£³Îǧ¤Î¾å¡¢¥¦¥¤¥ó¥É¥¦Æâ¤Î Close ¥Ü¥¿¥ó¤ÇÊĤ¸¤Æ¤¯¤À¤µ¤¤¡£
¡ãAR ¥Æ¥ó¥×¥ì¡¼¥È¤Î¾Ò²ð¥Ý¥Ã¥×¥¢¥Ã¥×¥¦¥¤¥ó¥É¥¦¡ä
¡¡²èÌ̱¦Â¦¤Î Inspector ¥¿¥Ö¤Î±¦Â¦¤Ë¤Ï Tutorials ¥¿¥Ö¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤Á¤é¤âÉÔÍפξì¹ç¤Ë¤Ï¡¢±¦¾å¤Î¥á¥Ë¥å¡¼¤è¤ê Close Tab ¤Ç¥¿¥Ö¤òÊĤ¸¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î Tutorials ¥¿¥Ö¤â¾¤Î¥¿¥Ö¤ÈƱ¤¸¤è¤¦¤Ë¤¤¤Ä¤Ç¤â³«¤¯¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡ãTutorials ¥¿¥Ö¡ä
¡¡¼ÂºÝ¤Ë AR µ¡Ç½¤¬Äɲ䵤ì¤Æ¤¤¤ë¤«¤Ï¡¢PackageManager¡¢¤ª¤è¤Ó Project ¥Õ¥©¥ë¥ÀÆâ¤Î Packages ¥Õ¥©¥ë¥À¤«¤é³Îǧ¤Ç¤¤Þ¤¹¡£
¡¡¥¨¥Ç¥£¥¿¡¼¤Îº¸¾å¤Ë¤¢¤ë¥á¥Ë¥å¡¼¤è¤ê Window ¢ª PackageManager¡¡¤òÁªÂò¤·¤Æ PackageManager ¤ò³«¤¤Þ¤¹¡£
º¸Â¦¤Î¹àÌÜÆâ¤Î Features Æâ¤Ë AR ¹àÌܤ¬¤¢¤ê¡¢ÁªÂò¤¹¤ë¤È ARFoundation °Ê²¼¡¢Ê£¿ô¤Î AR µ¡Ç½¤¬¥¤¥ó¥¹¥È¡¼¥ëºÑ¤Ç¤¢¤ë¤³¤È¤ò³Îǧ¤Ç¤¤Þ¤¹¡£
¡¡³Æµ¡Ç½¤Ë¤Ä¤¤¤Æ¤Ï¡¢¼¡¤Î¼ê½ç¤Ç²òÀ⤷¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¸åÄø³Îǧ¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡ãPackageManager¡¡AR¡ä
¡¡PackageManager ¤Ç¥¤¥ó¥¹¥È¡¼¥ëºÑ¤Îµ¡Ç½¤Ï Project ¥Õ¥©¥ë¥ÀÆâ¤Î Packages ¥Õ¥©¥ë¥À¤Ë¤âɽ¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¡ãProject ¥Õ¥©¥ë¥ÀÆâ¤Î Packages ¥Õ¥©¥ë¥À¡ä
¡¡PackageManager ¤È Packages ¥Õ¥©¥ë¥À¤ÎξÊý¤Ç³Îǧ¤¹¤ëÊʤò¤Ä¤±¤Æ¤ª¤¯¤È¤è¤¤¤Ç¤·¤ç¤¦¡£
¡¡ºÇ½é¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥·¡¼¥ó¤Ï SampleScene ¤Ç¤¹¡£¥·¡¼¥ó̾¤ÏÄ̾ï¤Î¥×¥í¥¸¥§¥¯¥È¤ò¿·µ¬ºîÀ®¤·¤¿¾ì¹ç¤ÈƱ¤¸¤Ç¤¹¤¬¡¢
¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¼ïÎब°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡ã¥Ò¥¨¥é¥ë¥¡¼²èÁü¡ä
¡¡AR ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ AR Session Origin ¤È AR Session ¤Î£²¤Ä¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£
AR Session Origin ¤Ë¤Ï»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ ARCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤é¤Ë¤Ï AR ¤ËɬÍפʥ³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¡¢Ìò³ä¤Ë±þ¤¸¤Æ¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤¹¡£³Æ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀâÌÀ¤Ï¸å½Ò¤·¤Þ¤¹¡£
AR Session Origin
¡¡AR Session Origin ¤Ï¿·µ¬ºîÀ®¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£
AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤ÆºÇ½é¤«¤éÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¿·µ¬ºîÀ®¤¹¤ë¤è¤ê¤â¿¤¯¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
AR Session
¡¡¤³¤Á¤é¤â¿·µ¬ºîÀ®²Äǽ¤Ç¤¹¡£
AR Session ¤ÎÊý¤Ï AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤Æ¤â¡¢ÍøÍѤ·¤Æ¤¤¤Ê¤¯¤Æ¤â¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÏƱ¤¸¤Ç¤¹¡£
¡¡¤Þ¤¿¥«¥á¥é¤Ë¤Ä¤¤¤Æ¤Ï AR ÍѤΥ«¥á¥é¤¬ ARCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¤¿¤á¡¢MainCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¤¢¤ê¤Þ¤»¤ó¡£
¡¡¤³¤Î¤è¤¦¤Ë AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤Æ¥×¥í¥¸¥§¥¯¥È¤ò¿·µ¬ºîÀ®¤¹¤ë¤È¡¢¤¹¤°¤Ë AR ÍѤγ«È¯¤¬²Äǽ¤Ê¾õÂ֤ǥ¹¥¿¡¼¥È½ÐÍè¤Þ¤¹¡£
¡¡¼¡¤Ï¡¢´û¸¤Î¥×¥í¥¸¥§¥¯¥È¤Ë AR µ¡Ç½¤òÄɲ乤ë¼ê½ç¤Ç¤¹¤Î¤Ç¡¢Äɲäμê½ç¼«ÂΤϥ¹¥¥Ã¥×²Äǽ¤Ç¤¹¤¬¡¢
PackageManager ¤Ë¤è¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ëºÑ¤Î³Æ AR ÍѤε¡Ç½ÀâÌÀ¤â¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢°ìÆɤ¹¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡AR ¤Î¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤¿¾ì¹ç¤Ë¤Ï¡¢¤³¤Î ARFoundation ¤Ê¤É¤Î AR ÍѤΥѥ屡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ÏÉÔÍפǤ¹¡£
¡¡´û¸¤Î¥×¥í¥¸¥§¥¯¥È¤Ë AR µ¡Ç½¤òÄɲ乤ë¾ì¹ç¡¢PackageManager ¤òÍøÍѤ·¤Æ¡¢
AR Foundation / XR Plugin Management / AR Core XR Plugin / AR Kit XR Plugin ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡Unity ¤Î¥×¥í¥¸¥§¥¯¥È¤òµ¯Æ°¤·¡¢º¸¾å¤Î¥á¥Ë¥å¡¼¤«¤é Window => Package Manager ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
PackageManager ¥¦¥¤¥ó¥É¥¦¤¬³«¤¤Þ¤¹¡£
PackageManager ¥¦¥¤¥ó¥É¥¦
https://docs.unity3d.com/ja/current/Manual/upm-ui....
¡¡PackageManager ¤¬³«¤¤¤¿¤é¡¢¥¦¥¤¥ó¥É¥¦Æâ¤Îº¸¾å¤Ë¤¢¤ë¥Ñ¥Ã¥±¡¼¥¸¥¹¥³¡¼¥×¥É¥í¥Ã¥×¥À¥¦¥ó¥á¥Ë¥å¡¼¤è¤ê¡¢Unity Registry ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¦¥¤¥ó¥É¥¦Æâ¤Îɽ¼¨¤¬¡¢Unity ¤Ë¥¤¥ó¥¹¥È¡¼¥ë²Äǽ¤Ê¥Ñ¥Ã¥±¡¼¥¸¤Îɽ¼¨¤ËÀÚ¤êÂؤï¤ê¤Þ¤¹¡£
¡¡¤³¤ÎÃæ¤Ë¤¢¤ë ARFoundation ¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
AR ¥Æ¥ó¥×¥ì¡¼¥È¤ÇÀ©ºî¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤¬¥¤¥ó¥¹¥È¡¼¥ëºÑ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¼«Æ°Åª¤Ë¡¢XR Plugin Management ¥Ñ¥Ã¥±¡¼¥¸¤â¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹¡£
¡¡ARFoundation ¥Ñ¥Ã¥±¡¼¥¸¤Ï¡¢PC ¤Ë¤ª¤¤¤ÆÀ½ºî¤·¤¿ AR ¤Î¥²¡¼¥à¤ò¡¢Android ÍѤΠARCore ¤Ë¤â¡¢iOS ÍѤΠARKit ¤Ë¤âÂбþ¤µ¤»¤Æ¤¯¤ì¤ëµ¡Ç½(¥Õ¥ì¡¼¥à¥ï¡¼¥¯)¤Ç¤¹¡£
³ÆüËö¤Ë±þ¤¸¤Æ¥Ñ¥Ã¥±¡¼¥¸¤ò»È¤¤Ê¬¤±¤Æ³«È¯¤»¤º¤È¤â¡¢¥Ó¥ë¥É¤ò¹Ô¤¦ºÝ¤Ë¡¢¤³¤Î ARFoundation ¤¬¼«Æ°Åª¤ËüËö¤Ë±þ¤¸¤¿½ÐÎϤò¹Ô¤Ã¤Æ¤¯¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¤Ê¤ª¸½»þÅÀ(2023.2·î)¤Ë¤ª¤¤¤Æ¤Ï ARFoundation ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï 4.2.2 ¤Ç¤¹¤¬¡¢¥×¥ì¥Ó¥å¡¼¤È¤·¤Æ 5.0.0 ¤â¥ê¥ê¡¼¥¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤¿¤À¤·¡¢5 ¥·¥ê¡¼¥º¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¾ì¹ç¤Ë¤Ï°·¤¦¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î¼ïÎबÊѤï¤ë¤¿¤á¡¢¤³¤Î¶µºà¤Ç¤Ï¸½¹Ô¥Ð¡¼¥¸¥ç¥ó¤Ç¤¢¤ë 4 ¥·¥ê¡¼¥º¤ÇºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£
¡ã»²¹Í¥µ¥¤¥È¡ä
Unity ¤Î AR Foundation ¥Õ¥ì¡¼¥à¥ï¡¼¥¯
https://unity.com/ja/unity/features/arfoundation
ARFoundation ¥Ñ¥Ã¥±¡¼¥¸(4.2 ¥Ð¡¼¥¸¥ç¥ó)
https://docs.unity3d.com/Packages/com.unity.xr.arf...
RIGHTCODE ÍÍ
¡ÚUnity¡ÛARFoundationÆþÌç¡Áµ¡Ç½²òÀ⤫¤éÊ¿Ì̸¡ÃΤμÂÁõ¤Þ¤Ç¡Á
https://rightcode.co.jp/blog/information-technolog...
¡¡¤³¤Î¼ê½ç¤Ï¡¢½êͤ·¤Æ¤¤¤ëüËö¤Î¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤¬ Android(Windows) ¤« iOS(Mac) ¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£
¡¡Android ¤Ç AR µ¡Ç½¤ò¼Â¹Ô¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ARCore XR Plugin ¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡iOS ¤Ç AR µ¡Ç½¤ò¼Â¹Ô¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ARKit XR Plugin ¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤É¤Á¤é¤â¡¢ARFoundation ¤Î¥Ð¡¼¥¸¥ç¥ó¤ÈƱ¤¸¥Ð¡¼¥¸¥ç¥ó¤¬Ä󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£
º£²ó¤Î¾ì¹ç¤Ç¤¢¤ì¤Ð ARFoundation 4.2.2 ¤Ç¤¹¤Î¤Ç¡¢ARCore ¤Ê¤É¤â 4.2.2 ¤Î¥Ð¡¼¥¸¥ç¥ó¤¬¼«Æ°Åª¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
¡ãARCore XR Plugin¡ä
¡ãARKit XR Plugin¡ä
¡¡¤½¤ì¤¾¤ì¤Î¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤Ë¤ª¤¤¤Æ AR ´Ä¶¤òÄ󶡤·¤Æ¤¯¤ì¤ëµ¡Ç½¤Ë¤Ê¤ê¤Þ¤¹¡£
¡ãUnity ¸ø¼°¥Þ¥Ë¥å¥¢¥ë¡ä
ARCore XR Plugin
https://docs.unity3d.com/ja/current/Manual/com.uni...
ARKit XR Plugin
https://docs.unity3d.com/ja/current/Manual/com.uni...
¡¡Àè¤Û¤É¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿µ¡Ç½¤òÍøÍѤ·¤Æ¡¢´û¸¤Î¥×¥í¥¸¥§¥¯¥È¤Ë AR ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÄɲä·¤Þ¤¹¡£
¡¡AR ¤Ç¤Ï¡¢AR ÀìÍѤΥ«¥á¥é¤òÍøÍѤ¹¤ë¤³¤È¤Ç¡¢¥²¡¼¥à²èÌ̤ȸ½¼ÂÀ¤³¦¤È¤òÍ»¹ç¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢Main Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï AR µ¡Ç½¤Ë¤ª¤¤¤Æ¤ÏÍøÍѤ·¤Þ¤»¤ó¡£
¡¡¤¿¤À¤·¡¢PC ¤Ç¤Î¥Ç¥Ð¥Ã¥°¤ÎºÝ¤ËɬÍפˤʤê¤Þ¤¹¤Î¤Ç¡¢¼¡¤Î¼ê½ç¤Ç¤Ï Main Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¹¥¯¥ê¥×¥È¤Ç¥ª¥ó/¥ª¥ÕÀ©¸æ¤·¤Þ¤¹¡£
¡¡Î¾Êý¤Î¥«¥á¥é¤¬°ì½ï¤ËÆ°¤¤¤Æ¤¤¤ë¤È AR ¤Îµ¡Ç½¤¬Ç§¼±¤µ¤ì¤Þ¤»¤ó¤Î¤Ç³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤¿¾ì¹ç¤Ë¤ÏºÇ½é¤«¤é MainCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¡¡AR ¤Îµ¡Ç½¤òÍøÍѤ¹¤ë¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤ò£²¤Ä¡¢ºîÀ®¤·¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¤¤Æ¡¢XR => AR Session ¤òÁªÂò¤·¤Þ¤¹¡£
AR Session ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï¡¢AR Session ¥¹¥¯¥ê¥×¥È¤È AR InputManager ¥¹¥¯¥ê¥×¥È¤¬ºÇ½é¤«¤é¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¤½¤Î¤Þ¤Þ¤ÇÌäÂꤢ¤ê¤Þ¤»¤ó¡£
¡ãAR Session ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡ä
¡¡¼¡¤âƱ¤¸¼ê½ç¤Ç¡¢¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¤¤Æ¡¢XR => AR Session Origin ¤òÁªÂò¤·¤Þ¤¹¡£
AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï¡¢AR Session Origin ¥¹¥¯¥ê¥×¥È¤¬ºÇ½é¤«¤é¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤Þ¤¿¡¢»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ AR Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ÇÛÃÖ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤ì¤é¤â¤½¤Î¤Þ¤Þ¤ÇÌäÂꤢ¤ê¤Þ¤»¤ó¡£
¸åÄø¡¢AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÊý¤Ï¡¢¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ä¥¹¥¯¥ê¥×¥È¤òÄɲä·¤Þ¤¹¡£
¡ã¥Ò¥¨¥é¥ë¥¡¼²èÁü¡ä
¡ãAR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡ä
¡ãAR Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡ä
¡¡¤³¤Î£²¤Ä¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤è¤ê¡¢AR ¤Îµ¡Ç½¤¬Í¸ú²½¤µ¤ì¤Þ¤¹¡£
¡¡¤³¤³¤«¤éÀè¤Ï¡Ú£±¡Û¡Ú£²¡Û¤É¤Á¤é¤Î¼ê½ç¤Ç¤¢¤Ã¤Æ¤â¿Ê¤á¤Æ¤¯¤À¤µ¤¤¡£
¡¡¥²¡¼¥à¤Ë AR µ¡Ç½¤ò¼ÂÁõ¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¥·¡¼¥óÆâ¤Ë¤¢¤ë£²¤Ä¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò´Þ¤á¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤Î£²¤Ä¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È·²¤Ë¤è¤Ã¤Æ¡¢Unity ¤Î¥²¡¼¥àÀ¤³¦¤È¸½¼ÂÀ¤³¦¤È¤ò¶¶ÅϤ·¤ò¤·¤Æ¤¯¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡AR Session ¤Ï¡¢AR ¥·¡¼¥ó¤Î¥é¥¤¥Õ¥µ¥¤¥¯¥ë¤ò¥»¥Ã¥·¥ç¥ó¤È¤¤¤¦Ã±°Ì¤Ç´ÉÍý¤¹¤ë¡¢AR µ¡Ç½¤ò¹½À®¤¹¤ë¥á¥¤¥ó¤È¤Ê¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î£±¤Ä¤Ç¤¹¡£
°ì½ï¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë ARInputManager ¤Ï AR ¤Ê¤É¤ÎÆþÎϾðÊó¤ò XRInputSubsystem ¤È¤·¤ÆÍøÍѤǤ¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ç¤¹¡£
¡¡AR Session Origin ¤ÏüËö¤Î¥«¥á¥é¤òÄ̤·¤Æ¡¢Æɤ߹þ¤Þ¤ì¤¿¸½¼Â¶õ´Ö¤Î¾ðÊó¤ò¡¢Unity¥·¡¼¥ó¤Î¡Ö°ÌÃÖ¡¦Êý¸þ¡¦Â礤µ¡×¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ç¤¹¡£
¤³¤Î AR ÍѤκÂɸ¾ðÊó¤ò Session Space ¤È¤¤¤¤¡¢Session Space ¤Ë¤ª¤¤¤Æ¤Ï¡¢AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î°ÌÃÖ¤¬¸¶ÅÀ°ÌÃ֤Ȥʤê¤Þ¤¹¡£
¡¡
¡¡AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë AR Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¡¢AR ¶õ´Ö¤Ç¤Î¥«¥á¥é¤ÎÌò³ä¤òô¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢Ä̾ï¤Î Camera ¥³¥ó¥Ý¡¼¥Í¥ó¥È°Ê³°¤Ë¤â¡¢AR ÍѤΥ³¥ó¥Ý¡¼¥Í¥ó¥È¤¬£³¤Ä¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡²¼µ¤Ë¸ø¼°¥Þ¥Ë¥å¥¢¥ë¤Î¥ê¥ó¥¯¤òźÉÕ¤·¤Æ¤ª¤¤Þ¤¹¡£
ARFoundation ¤Î¥Ð¡¼¥¸¥ç¥ó¤´¤È¤Ë¥Þ¥Ë¥å¥¢¥ë¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢º£²ó¤Ï 4.2 ¥Ð¡¼¥¸¥ç¥ó¤Î¥Þ¥Ë¥å¥¢¥ë¤ò¾Ò²ð¤·¤Þ¤¹¡£
¡ãUnity ¸ø¼°¥Þ¥Ë¥å¥¢¥ë¡ä
Class ARSession
https://docs.unity3d.com/Packages/com.unity.xr.arf...
Class ARInputManager
https://docs.unity3d.com/Packages/com.unity.xr.arf...
Class ARSessionOrigin
https://docs.unity3d.com/Packages/com.unity.xr.arf...
Class ARCameraManager
https://docs.unity3d.com/Packages/com.unity.xr.arf...
Class ARPoseDriver
https://docs.unity3d.com/Packages/com.unity.xr.arf...
Class ARCameraBackground
https://docs.unity3d.com/Packages/com.unity.xr.arf...
¡¡
¡¡ÆäËÀßÄ꤬ɬÍפʹàÌܤϤ¢¤ê¤Þ¤»¤ó¤¬¡¢¤³¤ì¤éÊ£¿ô¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤è¤Ã¤Æ AR ¥·¡¼¥ó¤¬ºîÀ®¤µ¤ì¤ë¤³¤È¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡ÀßÄê¼ê½ç¤Ï¡¢Android(AR Core XR Plugin) ¤«¡¢iOS(AR Kit XR Plugin) ¤«¤Ë¤è¤Ã¤Æ°Û¤Ê¤ê¤Þ¤¹¡£
¤Þ¤¿ AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¥¹¥¥Ã¥×¤Ç¤¤ë¹àÌܤ⤢¤ê¤Þ¤¹¡£
¡¡¤³¤³¤Ç¤Ï Android ¤Î¾ì¹ç¤Î¼ê½ç¤ò·ÇºÜ¤·¤Æ¤ª¤¤Þ¤¹¡£
iOS ¤Î¾ì¹ç¤Ë¤Ï¡¢¤³¤Á¤é¤Î¥µ¥¤¥È¤Î¼ê½ç£·¡Á£±£°¤ò»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡Unity Editor ¤Îº¸¾å¤Î¥á¥Ë¥å¡¼¤è¤ê¡¢File => Build Settings ¤òÁªÂò¤·¤Æ¥¦¥¤¥ó¥É¥¦¤ò³«¤¤Þ¤¹¡£
¡¡¥¦¥¤¥ó¥É¥¦Æâ¤Îº¸²¼¤Ë¤¢¤ë PlayerSettings ¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£ProjectSettings ¥¦¥¤¥ó¥É¥¦¤¬ Player ¤ËÁªÂò¤µ¤ì¤¿¾õÂ֤dz«¤¤Þ¤¹¡£
¡¡Android ÍѤÎÀßÄê¤ò¹Ô¤¦¤¿¤á¡¢Android ¤Î¥¿¥Ö¤òÁªÂò¤·¤Þ¤¹¡£
»Ø¼¨¤¬¤¢¤ë¤Þ¤Ç¤Ï¡¢¡Ú£±¡Û¡Ú£²¡Û¤Î¤É¤Á¤é¤Î¼ê½ç¤Ç¤¢¤Ã¤Æ¤âÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡ºÇ¾åÃʤˤ¢¤ë Company Name ¤òÀßÄꤷ¤Þ¤¹¡£½é´ü¤Ç¤Ï Default Company ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤òǤ°Õ¤Î̾Á°¤ËÊѹ¹¤·¤Þ¤¹¡£
¤¿¤À¤·¥¹¥Ú¡¼¥¹¤òÍøÍѤ·¤¿¾ì¹ç¡¢¼¡¤Î¼ê½ç¤Ç·Ù¹ð¤¬½Ð¤Æ¤·¤Þ¤¦¤Î¤Ç¡¢¥¹¥Ú¡¼¥¹¤Ï¶õ¤±¤º¤Ë̾Á°¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡
¡¡¤³¤Î²èÁü¤Ç¤Ï¥¹¥Ú¡¼¥¹¤ò¤ï¤¶¤È¶õ¤±¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤Î¤è¤¦¤Ë¤Ï¤»¤º¡¢¥¹¥Ú¡¼¥¹¤ò¶õ¤±¤º¤ËÀßÄꤷ¤Þ¤·¤ç¤¦¡£
¡¡Â³¤¤¤Æ¡¢¾åµ¤Î Company Name ¤Ë´ØÏ¢¤¹¤ë OtherSettings Æâ¤ÎÀßÄê¤ò£²¤Ä¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡ºÇ½é¤Ë Resolution and Presentation ¤ÎÃæ¤ÇüËö²èÌ̤θþ¤¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
º£²óºîÀ®¤¹¤ë¥²¡¼¥à¤Ï²èÌ̤¬½Ä¸þ¤¤Ç¤¹¤Î¤Ç¡¢Portrait ¤òÁªÂò¤·¤Þ¤¹¡£Auto Rotation ¤ÏÍøÍѤ·¤Æ¤â¤·¤Ê¤¯¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
¤³¤Á¤é¤Ï¤½¤ÎÅÔÅÙ¡¢¥²¡¼¥à¤Î²èÌ̤˹ç¤ï¤»¤ÆÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡Â³¤¤¤Æ¡¢Identificastion Æâ¤Î Override Default Package Name ¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢
¤½¤Î²¼¤Î¶õÇò¤Ë¤Ê¤Ã¤Æ¤¤¤ë Package Name Æâ¤Ë¥²¡¼¥à¤Î¼±ÊÌ̾ÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£(ÀÖ¤¤¥¨¥é¡¼¤¬½Ð¤Æ¤¤¤ëÉôʬ¤Ç¤¹)
¡¡½ñ¼°¤¬·è¤Þ¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢²èÌ̤ÎÃí°Õ½ñ¤¤Ë¤â¤¢¤ë¤è¤¦¤Ë com.[YourCompanyName.YourProjectName] ¤È¤Ê¤ë¤è¤¦¤ËÀßÄꤷ¤Þ¤¹¡£
Î㤨¤Ð¡¢Company Name ¤¬ YourCompanyName¡¢Project Name ¤¬ MyProject_AR ¤Î¾ì¹ç¤Ë¤Ï¡¢²¼µ¤Î²èÁü¤Î¤è¤¦¤ËÀßÄꤷ¤Þ¤¹¡£
¡¡¤Ê¤ª¤³¤³¤Ç Company Name ¤ä Project Name ¤Ë¥¹¥Ú¡¼¥¹¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤È Console ¥Ó¥å¡¼¤Ë·Ù¹ð¤¬½Ð¤Þ¤¹¡£
¡¡¤½¤·¤Æ¶¯À©Åª¤Ë¥¹¥Ú¡¼¥¹¤¬¾Ê¤«¤ì¤¿·Á¤Ç PackageName ¤¬½¤Àµ¤µ¤ì¤ÆÀßÄꤵ¤ì¤Þ¤¹¡£
¡¡ºÇ¸å¤Ë¡¢ProjectSettings Æâ¤Îº¸Â¦¤Ë¤¢¤ë¹àÌܤ«¤é XR Plugin Management ¤òÁªÂò¤·¡¢
Android ¤Î¾ì¹ç¤Ë¤Ï ARCore¡¢iOS ¤Î¾ì¹ç¤Ë¤Ï ARKit ¤Ë¡¢²¼µ¤Î²èÁü¤Î¤è¤¦¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤Þ¤¹¡£
¡¡
¡¡AR ¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤³¤³¤Þ¤Ç¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
´û¸¤Î¥×¥í¥¸¥§¥¯¥È¤Ë AR µ¡Ç½¤òÄɲä·¤¿¾ì¹ç¤Ë¤Ï¡¢¼¡¤Î¼ê½ç¤ÇÄɲäÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡ÄÉ²Ã¤Ç OtherSettings Æâ¤ÎÀßÄê¤ò£²¤Ä¹Ô¤¤¤Þ¤¹¡£
¡¡Graphics APIs ¤«¤é Vulkan ¤òºï½ü¤·¤Þ¤¹¡£
¤³¤ì¤Ï Vulkan ¤¬ AR ¤ÎÉÁ²è¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¤¿¤á¤Ç¤¹¡£
¡¡¼¡¤Ë¡¢Minimum API Level ¤ò7.0°Ê¾å¤ËÊѹ¹¤·¤Þ¤¹¡£
¤³¤ì¤Ï¡¢API Level 7.0 °Ê¾å¤Ç¤Ê¤¤¤È AR ¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¤¿¤á¤Ç¤¹¡£
¡¡°Ê¾å¤Ç¥Ó¥ë¥É¤ÎÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡Unity Editor ¤Îº¸¾å¤Î¥á¥Ë¥å¡¼¤è¤ê¡¢File => Build Settings ¤òÁªÂò¤·¤Æ¡¢¥¦¥¤¥ó¥É¥¦¤ò³«¤¤Þ¤¹¡£
¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤¬ Windows, Mac, Linux ¤Ç¤¢¤ë¾ì¹ç¡¢¤´¼«Ê¬¤Î½ê»ý¤·¤Æ¤¤¤ëüËö¤Ë¹ç¤ï¤»¤Æ Android ¤« iOS ¤Î¤¤¤º¤ì¤«¤ËÀßÄꤷ¤Þ¤¹¡£
ÀßÄꤷ¤¿¤¤¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤ò¥¯¥ê¥Ã¥¯¤·¤ÆÀĤ¯ÁªÂò¤µ¤ì¤¿¾õÂ֤ˤ·¡¢¤½¤Î¾õÂ֤DZ¦²¼¤Ë¤¢¤ë Switch Platform ¥Ü¥¿¥ó¤ò²¡¤¹¤ÈÀßÄê¤Ç¤¤Þ¤¹¡£
¡¡¡¡¢
¡¡Unity ¤Î¥¢¥¤¥³¥ó¤¬°ÜÆ°¤·¤Æ¡¢¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤ÎÀßÄ꤬´°Î»¤·¤Þ¤¹¡£
¡¡Â³¤¤¤Æ Scenes In Build Æâ¤Ë¸½ºß¤Î¥·¡¼¥ó¤òÄɲä·¡¢Build Âоݤˤ·¤Þ¤¹¡£
Add Open Scenes ¥Ü¥¿¥ó¤ò²¡¤¹¤È¡¢¸½ºß¥¨¥Ç¥£¥¿¡¼¤Ç³«¤¤¤Æ¤¤¤ë¥·¡¼¥ó¤¬Äɲ䵤ì¤Þ¤¹¡£
¡¡¤³¤Î¸å¡¢¼«Æ°Åª¤Ë Build ¥Ü¥¿¥ó¤ò²¡¤»¤ë¤è¤¦¤Ë¤Ê¤ë¾ì¹ç¤È¡¢¥·¡¼¥ó¤òÄɲ䷤Ƥâ Build ¥Ü¥¿¥ó¤¬²¡¤»¤Ê¤¤¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£
Build ¥Ü¥¿¥ó¤¬³¥¿§¤Ç²¡¤»¤Ê¤¤¾ì¹ç¤Ë¤Ï°ìÅÙ Build Settings ¥¦¥¤¥ó¥É¥¦¤òÊĤ¸¡¢ºÆÅÙ¡¢³«¤Ä¾¤·¤Æ¤¯¤À¤µ¤¤¡£
¤½¤¦¤¹¤ë¤È²¡¤»¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡Build ¥Ü¥¿¥ó¤«¡¢Build And Run ¥Ü¥¿¥ó¤ò¤ª¤·¤Æ Build ¤·¤Þ¤¹¡£
üËö¤ò PC ¤ÈÀܳ¤Ç¤¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢Build And Run ¥Ü¥¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£
Àܳ¤·¤Æ¤¤¤ëüËö¤Ç¥²¡¼¥à¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
¡¡iOS ¤Î¾ì¹ç¤Ë¤Ï Build And Run ¤ò¼Â¹Ô¤¹¤ë¤È XCode ¤¬Î©¤Á¾å¤¬¤ê¡¢¤½¤Î¸å¡¢Àܳ¤·¤Æ¤¤¤ëüËö¤Ç¥²¡¼¥à¤¬µ¯Æ°¤·¤Þ¤¹¡£
¡¡Build ¤Î¾ì¹ç¤Ë¤Ï¡¢Ç¤°Õ¤Î¾ì½ê¤È¥Õ¥¡¥¤¥ë̾¤òÀßÄꤷ¤Þ¤¹¡£
½é²ó¤Ï»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¡£¥Ó¥ë¥É¤ËÀ®¸ù¤¹¤ë¤È¡¢Build ¤Î¾ì¹ç¤Ë¤Ï¡¢Android ÍѤΠAPK ¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£
¤½¤Á¤é¤ò¼«Ê¬¤Î¥Ç¥Ð¥¤¥¹¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ç¡¢¼Âµ¡¤Ç¤Î AR ¤Î¥Æ¥¹¥È¤ò¹Ô¤¦¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¥¤¥ó¥¹¥È¡¼¥ë¤ÎÊýË¡¤Ç¤¹¤¬¡¢Google ¥É¥é¥¤¥Ö¤Ê¤É¤Î PC ¤È¥Ç¥Ð¥¤¥¹¤È¤Ç¶¦Í¤Ç¤¤ë¥µ¡¼¥Ó¥¹¤Ë APK ¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¯¤À¤µ¤¤¡£
PC Æâ¤Ë¤¢¤ë APK ¥Õ¥¡¥¤¥ë¤ò Google ¥É¥é¥¤¥Ö¤ËÆþ¤ì¤ë»ö¤Ç¡¢¥Ç¥Ð¥¤¥¹¤«¤é Google ¥É¥é¥¤¥Ö¤Ë¥¢¥¯¥»¥¹¤·¤Æ¥À¥¦¥ó¥í¡¼¥É¤È¥¤¥ó¥¹¥È¡¼¥ë¤¬¹Ô¤¨¤Þ¤¹¡£
¡ã¥¤¥ó¥¹¥È¡¼¥ë³Îǧ(½é²ó)¡ä
¡ã¥¤¥ó¥¹¥È¡¼¥ë³Îǧ(¥¤¥ó¥¹¥È¡¼¥ëºÑ¤Ç2²óÌܰʹß)¡ä
¡ãÀµ¾ï¤Ë¥¤¥ó¥¹¥È¡¼¥ë¸å¤Î²èÌÌ¡ä
¡¡¥¤¥ó¥¹¥È¡¼¥ë¤¬´°Î»¤·¤¿¤é¡¢¥²¡¼¥à¤òµ¯Æ°¤·¤Æ¤¯¤À¤µ¤¤¡£¥¢¥×¥ê¤È¤·¤Æ¥Ç¥Ð¥¤¥¹Æâ¤ËÄɲ䵤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¥²¡¼¥à¤¬µ¯Æ°¤·¡¢AR ¤¬Àµ¾ï¤ËÆ°ºî¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥²¡¼¥à¤Îµ¯Æ°¸å¤Ë¥«¥á¥é¤Îµö²Ä¤òµá¤á¤é¤ì¤Þ¤¹¡£¤³¤Î¥á¥Ã¥»¡¼¥¸¤¬½Ð¤Æ¤¯¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡µö²Ä¤¹¤ë¤òÁªÂò¤¹¤ë¤È¡¢AR ÍѤΥ«¥á¥é¤¬Î©¤Á¾å¤¬¤ê¤Þ¤¹¡£
¡ã¥«¥á¥é¤Îµö²Ä¡ä
¡¡¸½»þÅÀ¤Ç¤Ï¡¢AR ¤Î¥«¥á¥é¤¬µ¯Æ°¤¹¤ëÉôʬ¤Þ¤Ç³Îǧ¤¬¤Ç¤¤ì¤ÐÂç¾æÉפǤ¹¡£
¡¡¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡=>¡¡¼¡¤Ï¡¡¼ê½ç£²¡¡AR¶õ´Ö¤Ë²èÁüÉÕ¤¤Î¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë¢¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯