ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2021ǯ11·î14Æü(Æü) 17:30:13ÍúÎò
£±£¶¡¥Excel¤ÇºîÀ®¤·¤¿¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤òJson¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤·¤Æ¡¢Unity¤ÎStreamingAssetsÆâ¤ËÆþ¤ì¤ë £±£·¡¥¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥ÈÍѤΥ¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë £±£¸¡¥Json¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ó¤Ç¡¢¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤ò¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ËÅÐÏ¿¤¹¤ë¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë
¡¡¢¨¡¡»²¹Í¤Ë¤·¤Æ¤¤¤¿³°Éô¥ê¥ó¥¯¤¬ÀÚ¤ì¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¤¿¤á¡¢16¤Î¼ê½ç¤Ç¤Ï¤Ê¤¯¡¢¥µ¥¤¥È¤Î²¼ÃʤˤëÊäÂÆâ¤Ë¤Æ·ÇºÜ¤·¤Æ¤¤¤ëÊýË¡¤Ç¤Î¼ÂÁõ¤ò¤ª´ê¤¤Ãפ·¤Þ¤¹¡£
£±£¶¡¥Excel¤ÇºîÀ®¤·¤¿¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤òJson¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤·¤Æ¡¢Unity¤ÎStreamingAssets¥Õ¥©¥ë¥ÀÆâ¤ËÆþ¤ì¤ë
¡¡¤³¤Á¤é¤Î¥µ¥¤¥È¤Îµ»ö¤ò»²¹Í¤Ë¤·¤Æĺ¤¡¢Excel¤ÇºîÀ®¤·¤¿¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤òJson·Á¼°¤Î¥Ç¡¼¥¿¤È¤·¤Æ½ñ¤½Ð¤·¤Þ¤·¤ç¤¦¡£
¤Ê¤ª¤³¤Îµ»ö¤Ï¡¢Excel¥Õ¥¡¥¤¥ë¤òJson¥Õ¥¡¥¤¥ë¤ò½ñ¤½Ð¤¹Éôʬ¤Þ¤Ç¿Ê¤á¤Æ失¤ì¤ÐÂç¾æÉפǤ¹¡£¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®°Ê¹ß¤Î»Ä¤ê¤ÎÆâÍƤϤ³¤Á¤é¤Îµ»ö¤Ç¼ÂÁõ¤·¤Þ¤¹¡£
eggame¤µ¤Þ
Excel¤Ç¥Þ¥¹¥¿¡¼¥Ç¡¼¥¿¤òºî¤ê¡¢Json¤ÇScriptableObject¤ËÆɤ߹þ¤Þ¤»¤ëÈ÷˺Ͽ
https://eggame.hateblo.jp/entry/2017/10/03/185946
¡¡¢¨¡¡¤Ê¤ª¡¢Excel¤Ë³«È¯¥¿¥°¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¤³¤Á¤é¤Îµ»ö¤ò»²¹Í¤Ë¤·¤Æ³«È¯¥¿¥°¤òɽ¼¨¤µ¤»¤Æºî¶È¤ò¿Ê¤á¤Æ¤¯¤À¤µ¤¤¡£
Excel¶È̳¥«¥¤¥¼¥ó¥Ö¥í¥°¤µ¤Þ
Excel¥·¡¼¥È¤ò¹¹¤ËÊØÍø¤Ë¤¹¤ë¥Õ¥©¡¼¥à¥³¥ó¥È¥í¡¼¥ë
https://www.forguncy.com/blog/20170823_form
¡¡Json¥Õ¥¡¥¤¥ë¤¬Ìµ»ö¤Ë½ñ¤¤À¤µ¤ì¤¿¤é¡¢Ãæ¿È¤ò³Îǧ¤·¤Æ¡¢À°·Á¤·¤Þ¤¹¡£
¡¡
¡¡Json¥Õ¥¡¥¤¥ëÆâ¤ÎÀ°·Á¤¬½ª¤ï¤ê¤Þ¤·¤¿¤é¡¢¼¡¤Ï¤³¤Î¥Õ¥¡¥¤¥ë¤òUnity¤Ë¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£
ProjectÆâ¤Ç Create => Folder ¤òÁªÂò¤·¡¢StreamingAssets¤È¤¤¤¦Ì¾Á°¤ÇÊݸ¤·¤Þ¤¹¡£
¤³¤ì¤ÏEditor¥Õ¥©¥ë¥À¤äResources¥Õ¥©¥ë¥À¤ÈƱ¤¸¤¯¡¢Unity¤Î¥×¥í¥¸¥§¥¯¥È¤Ë¤ª¤¤¤ÆÆÃÊ̤ʰÕÌ£¤ò»ý¤Ä¥Õ¥©¥ë¥À¤Ë¤Ê¤ê¤Þ¤¹¡£Ì¾Á°¤ò´Ö°ã¤¨¤º¤ËºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£
Assets => StreamingAssets ¤È¤¤¤¦´Ø·¸¤Ç¥Õ¥©¥ë¥À¤¬ºîÀ®¤Ç¤¤Æ¤¤¤ì¤ÐÂç¾æÉפǤ¹¡£
¡¡
¡¡¤³¤ÎStreamingAssets¥Õ¥©¥ë¥À¤Ë¡¢Àè¤Û¤ÉÊÔ½¸¤·¤¿Json¥Õ¥¡¥¤¥ë¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£
¤³¤ì¤Ç¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤¬UnityÆâ¤ËÆþ¤ê¤Þ¤·¤¿¡£
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
ScriptableObject
https://docs.unity3d.com/ja/2020.1/Manual/class-Sc...
¡¡¥²¡¼¥àÃæ¤Ë¤ª¤¤¤ÆÊѲ½¤·¤Ê¤¤¥Ç¡¼¥¿¤È¤¤¤¦¤Î¤Ï¿§¡¹¤Ê¤â¤Î¤¬¤¢¤ê¤Þ¤¹¤¬¡¢º£²ó¤Î¾ì¹ç¤Ë¤Ï¥á¥Ã¥»¡¼¥¸¤È¤·¤Æɽ¼¨¤¹¤ë¥Æ¥¥¹¥È¥Ç¡¼¥¿¤ò»Ø¤·¤Þ¤¹¡£
¾¤Ë¤â¡¢RPG¤Ç¤¢¤ì¤ÐŨ¤Î¥Ç¡¼¥¿¤ä¥¢¥¤¥Æ¥à¤Î¥Ç¡¼¥¿¡¢¥¤¥Ù¥ó¥ÈȯÀ¸ÍѤξò·ï¥Ç¡¼¥¿¤Ê¤É¡¢Â¿´ô¤Ë¤ï¤¿¤ê¤Þ¤¹¡£
¡¡ÍøÅÀ¤È¤·¤Æ¤Ï¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¾å¤Ç´ÉÍý¤¬²Äǽ¤Ç¤¢¤ë¤¿¤á¡¢¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¤·¤Æ¥Ñ¥é¥á¡¼¥¿¤ÎÈæ³Ó¤ä½¤Àµ¤¬´Êñ¤Ë¹Ô¤¨¤ë¤³¤È¤¬¤¢¤²¤é¤ì¤Þ¤¹¡£
Enum¤ÎÀßÄê¤Ë¤Ï¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤¬»È¤¨¤Þ¤¹¤Î¤ÇÊØÍø¤Ç¤¹¡£
¾¤Ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ÎÊÕ¤ê¤Ïµ»ö¤¬¤¿¤¯¤µ¤ó¤¢¤ê¤Þ¤¹¤Î¤Ç¼«Ê¬¤ÇÄ´¤Ù¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¡¡¤³¤Î¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤È¤¤¤¦¥¢¥»¥Ã¥È¤òºîÀ®¤·¤Æ¡¢¤½¤Á¤é¤ËJson¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤òÆɤ߹þ¤Þ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ
Unity¤Ç¤Î¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤Î¥²¡¼¥àÆâ¤Ø¤Î»²¾È¤òÍưפˤ·¡¢¤Ê¤ª¤«¤Ä¡¢¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤Î´ÉÍý¤äÊѹ¹¤â°ì½ï¤Ë½ÐÍè¤ë¤è¤¦¤Ë¤·¤Æ¤·¤Þ¤ª¤¦¤È¤¤¤¦¤Î¤¬¡¢º£²ó»ÈÍѤ¹¤ëÌÜŪ¤Ç¤¹¡£¡¡
¡¡¤½¤ì¤Ç¤Ï¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Æ¤¤¤¤Þ¤·¤ç¤¦¡£
¡¡¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï
¡¡£±¡¥¥Þ¥¹¥¿¡¼¥Ç¡¼¥¿ÍѤΥ¯¥é¥¹¡Êº£²ó¤Ï¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤ò£±¤Ä¤º¤Ä´ÉÍý¤¹¤ë¤¿¤á¤Î¥¯¥é¥¹¤È¡¢¤½¤ì¤ò¥ê¥¹¥È²½¤¹¤ë¡Ë ¡¡£²¡¥¤½¤ì¤ò´ÉÍý¤¹¤ë¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¯¥é¥¹
¤È¤¬É¬Íפˤʤê¤Þ¤¹¡£¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¯¥é¥¹¤¬¡¢¥Þ¥¹¥¿¡¼¥Ç¡¼¥¿ÍѤΥ¯¥é¥¹¤ò´ÉÍý¤¹¤ë·Á¤Ç»ÈÍѤ·¤Þ¤¹¡£
¡¡¤³¤Î¤È¤¡¢ÊÌ¡¹¤Ë£²¤Ä¤Î¥¯¥é¥¹¤òºîÀ®¤¹¤ëÊýË¡¤È¡¢¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¯¥é¥¹¤Î¤ß¤òºîÀ®¤·¤Æ¡¢¤½¤ÎÃæ¤ËÆþ¤ì»Ò¥¯¥é¥¹¤È¤·¤Æ¥Þ¥¹¥¿¡¼¥Ç¡¼¥¿ÍѤΥ¯¥é¥¹¤òÆþ¤ì¡¢£±¤Ä¤Î¥¯¥é¥¹¤Ë¤Þ¤È¤á¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
¡¡º£²ó¤ÏÊÌ¡¹¤Î¥¯¥é¥¹¤òºîÀ®¤¹¤ëÊýË¡¤ÇºîÀ®¤·¤Æ¤¤¤¤Þ¤¹¡£°ì½ï¤Ëºî¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤Á¤é¤Îµ»ö¤ò»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ï¥ë¥·¥ª¥ó¥·¥¹¥Æ¥à¤µ¤Þ
Unity¤ÇScriptableObject¤òºîÀ®¤·¤Æ¡¢»È¤¦ÊýË¡¤Î¾Ò²ð¡£¤Ê¤ó¤«»È¤¤¤ä¤¹¤¤¤è¤¦¤Ë»È¤Ã¤Æ¤¯¤À¤µ¤¤¡ª
http://halcyonsystemblog.jp/blog-entry-587.html
¡¡Scripts¥Õ¥©¥ë¥ÀÆâ¤Ç¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢Create => C# Script ¤òÁªÂò¡¢Ì¾Á°¤ò ScenarioMasterData ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡¡¡
¡¡ScenarioMasterData¥¯¥é¥¹Æâ¤ÇºîÀ®¤¹¤ë ScenarioData ¥¯¥é¥¹¤Ë¡¢Json¤ÇÍÑ°Õ¤·¤¿¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤¬£±¥Ç¡¼¥¿¤Å¤Ä½çÈ֤˳ÊǼ¤µ¤ì¤Þ¤¹¡£
Ê£¿ô¤Î¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤ò¤Þ¤È¤á¤Æ´ÉÍý¤Ç¤¤ë¤è¤¦¤Ë¡¢List<ScenarioData>¤òÍÑ°Õ¤·¤Æ¤ª¤¤Þ¤¹¡£
¡¡¤³¤Î¤È¤ÂçÀڤʤ³¤È¤¬¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¡££±¤Ä¤Ï¡¢¥¯¥é¥¹¤Î¾å¤Ë°À¾ðÊó¤òÀßÄꤹ¤ë¤³¤È¤Ç¤¹¡£[Sysytem.Serializable]¤È¤¤¤¦Â°À¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢
¤³¤Î°À¤¬¤Ê¤¤¤ÈJson¥Ç¡¼¥¿¤òÆɤ߹þ¤àºÝ¤ËJsonUtility¤Ç¥·¥ê¥¢¥é¥¤¥º¤¬½ÐÍ褺¤Ë¡¢Json¤Î¥Ç¡¼¥¿¤òÍÑ°Õ¤·¤¿ÊÑ¿ô¤ËÂåÆþ¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤»¤ó¡£
¡¡¤â¤¦£±¤Ä¤Ï¡¢¥Õ¥¡¥¤¥ë¤ÈƱ¤¸Ì¾Á°¤ÎÊÑ¿ô̾¤ÈJson¤Îkey¤òƱ¤¸Ì¾Á°¤ÇÍÑ°Õ¤·¤Æ¤ª¤«¤Ê¤¤¤È¡¢Json¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòÊÑ¿ô¤ËÂåÆþ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£
Json¤Î¥Õ¥¡¥¤¥ë¤È¡¢ºîÀ®¤·¤¿ScenarioData¤Î³ÆÊÑ¿ô̾¤¬Æ±¤¸Ì¾Á°¤Ç¤¢¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¡ÊÂçʸ»ú¡¦¾®Ê¸»ú¶èÊ̤µ¤ì¤Þ¤¹¡Ë
¡¡¤³¤Î¥¯¥é¥¹¤Ï¡¢¥¯¥é¥¹¤Î·Ñ¾µ¤Ï¤¢¤ê¤Þ¤»¤ó¡£¡ÊMonoBehaviour¤âºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡Ë
¡¡¤³¤Î¥¯¥é¥¹¤ÏMonoBehaviour¤Ç¤Ï¤Ê¤¯¡¢ ScriptableObject ¥¯¥é¥¹¤ò·Ñ¾µ¤µ¤»¤Þ¤¹¡£
¤Þ¤¿Â°À¾ðÊó¤È¤·¤Æ[CreateAssetMenu()]¤òÀßÄꤷ¤Þ¤¹¡£¤³¤ÎÀßÄê¤ò¹Ô¤¦¤³¤È¤Ë¤è¤Ã¤Æ¡¢UnityEditor¤«¤é¥¢¥»¥Ã¥È¤È¤·¤Æ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Âè1°ú¿ô¤¬¥á¥Ë¥å¡¼¸Æ¤Ó½Ð¤·¤Î̾Á°¡¢Âè2°ú¿ô¤ÏºîÀ®¤µ¤ì¤¿ºÝ¤Î½é´ü¤Î¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¥Õ¥¡¥¤¥ë̾¤Î»ØÄê¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤³¤Ç¤Ï¡¢UnityEditor¤Î
¡¡Assets => Create => Assets => Create ScenerioSO
¤ÇºîÀ®¤µ¤ì¤Þ¤¹¡£
https://gyazo.com/33125d919b3486a21a04d4c104ee5854¡¡
ºîÀ®¤µ¤ì¤¿¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Ï¾¤È¤Ï°ã¤¦¥¢¥¤¥³¥ó¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£(¥¢¥¤¥³¥ó¤Î·Á¾õ¤Ï¡¢Unity2020¤ÈUnity2019°ÊÁ°¤È¤Ç¤Ï°Û¤Ê¤ê¤Þ¤¹¡£)
¡¡Ìµ»ö¤ËºîÀ®¤Ç¤¤Þ¤·¤¿¤¬¡¢¤Þ¤ÀÃæ¿È¤¬²¿¤â¤Ê¤¤¾õÂ֤Ǥ¹¡£¤³¤Á¤é¤ËJson¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤òÆɤ߹þ¤Þ¤»¤Æ¡¢¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¤·¤Æ¤Îµ¡Ç½¤ò»ý¤¿¤»¤Þ¤·¤ç¤¦¡£
£±£¸¡¥Json¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ó¤Ç¡¢¥·¥Ê¥ê¥ª¥Ç¡¼¥¿¤ò¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ËÅÐÏ¿¤¹¤ë¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë
¡¡¡Ú£±£¶¡Û¤Ç»²¹Í¤Ë¤µ¤»¤Æ夤¤¿¥µ¥¤¥ÈÍͤΥ³¡¼¥É¤òÍøÍѤµ¤»¤Æ夤¤Æ¡¢Json¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤à¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Þ¤¹¡£
Debug.Log¤Ê¤É¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤Á¤é¤Ï¤½¤Î¤Þ¤ÞÍøÍѤµ¤»¤Æ夤¤Æ¤ª¤ê¤Þ¤¹¡£
¡¡Scripts¥Õ¥©¥ë¥ÀÆâ¤Ç¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢Create => C# Script ¤òÁªÂò¡¢Ì¾Á°¤ò JsonHelper ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡Â³¤¤¤Æ¡¢JsonHelper¥¯¥é¥¹¤ò¸Æ¤Ó½Ð¤¹¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Æ¤¤¤¤Þ¤¹¡£¤³¤Á¤é¤Î¥á¥½¥Ã¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤ÇJsonHelper¤¬Json¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤à¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Àè¤Û¤É¤Î¥µ¥¤¥ÈÍͤȥ¹¥¯¥ê¥×¥È̾¤ÏƱ¤¸¤Ç¤¹¤¬¥³¡¼¥É¤ÎÆâÍƤϰۤʤê¤Þ¤¹¡£
¡¡¤³¤ì¤Ç¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ò»È¤Ã¤¿¥Ç¡¼¥¿¥Ù¡¼¥¹¤òºî¤ë½àÈ÷¤¬½ÐÍè¤Þ¤·¤¿¡£¤Ç¤¹¤¬¡¢¤Þ¤À¤³¤Î¥á¥½¥Ã¥É¤ò¸Æ¤Ó½Ð¤·¤Æ¤¤¤ë¥¯¥é¥¹¤¬¤¢¤ê¤Þ¤»¤ó¤Î¤Ç
¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ËJson¤Î¥Ç¡¼¥¿¤òÅÐÏ¿¤¹¤ë½èÍý¤ÏÆ°¤¤¤Æ¤¤¤Ê¤¤¾õÂ֤Ǥ¹¡£
¡¡¼¡¤Ï¿·¤·¤¤¥¯¥é¥¹¤òºîÀ®¤·¡¢¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ËJson¤Î¥Ç¡¼¥¿¤òÅÐÏ¿¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡¤³¤Á¤é¤Î¥µ¥¤¥È¤Ë¤Æ¤È¤Æ¤âÊØÍø¤Êµ¡Ç½¤¬À½ºî¤µ¤ì¤Æ¡¢»ÈÍÑÊýË¡¤â¾Ò²ð¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤Á¤é¤ò»È¤¨¤Ð¡¢º£²óºîÀ®¤·¤¿¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¯¥é¥¹¤ÎºîÀ®¼ê½ç¤â¤¹¤Ù¤Æ¼«Æ°¤ÇºîÀ®¤·¡¢Excel¥Õ¥¡¥¤¥ë¤âÆɤ߹þ¤ó¤Ç¥Ç¡¼¥¿²½¤·¤Æ失¤ë¡¢»ê¤ì¤ê¿Ô¤¯¤»¤ê¤Îµ¡Ç½¤Ç¤¹¡£
¤Ç¤¹¤¬¤³¤ì¤Ï¡¢¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤È¤¤¤¦µ¡Ç½¤ò¤·¤Ã¤«¤ê¤È¤ï¤«¤Ã¤¿¾å¤ÇÍøÍѤ¹¤ë¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£
¥Æ¥é¥·¥å¡¼¥ë¥Ö¥í¥°¤µ¤Þ
Excel¤Ç¥Ç¡¼¥¿¤ò´ÉÍý¤·¤ÆUnity iOS/Android¤Ç»È¤¦¥ï¡¼¥¯¥Õ¥í¡¼¤ò¥Î¡¼¥³¡¼¥Ç¥£¥ó¥°¤Ç»È¤¨¤ë¤è¤¦¤Ë¤·¤¿
http://tsubakit1.hateblo.jp/entry/20131010/1381411...
¡¡¤³¤Á¤é¤Î¼ê½ç¤òÍøÍѤ·¤¿Excel¥Õ¥¡¥¤¥ë¤«¤é¤ÎºîÀ®¤Ç¤Ï¡¢¼¡¤ÎÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡£±¡¥Excel¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò Scenario.xlsx ¤ËÊѹ¹¤·¤Þ¤¹¡£.xlsm ¤Ç¤ÏÆ°ºî¤·¤Þ¤»¤ó¡£ ¡¡¡ÁString ¤È¤¤¤¦¾ðÊó¤Ë´Ø¤·¤Æ¤Ï Cell ¤ÎÃæ¿È¤Ïʸ»úÎó¤Ë¤·¤ÆÅÐÏ¿¤·¤Æ¤¯¤À¤µ¤¤(¿ô»ú¤ÎÀèƬ¤Ë ' (¥·¥ó¥°¥ë¡¦¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó)¤ò¤Ä¤±¤ë) ¡¡£²¡¥XLS Import Setting ¤Ç¤ÎÀßÄê¤ò¼¡¤Î¤è¤¦¤ËÊѹ¹¤·¤Þ¤¹¡£
XLS Import Setting¤Î²èÁü
¡¡£³¡¥Scenario.xlsx¤ÎReimport¤ò¹Ô¤¤¤Þ¤¹¡£ ¡¡£´¡¥¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤¬À¸À®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò ScenarioSO ¤ËÊѹ¹¤·¤Þ¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- Áí¹ç
¥³¥á¥ó¥È¤ò¤«¤¯