FAQ - SpriteStudioArchive/SS5PlayerForUnity_v1_2_1 GitHub Wiki
ãããããåãåãã
CPU ã®åŠçè² è·ã軜æžããã
åºæ¬çãªå¯ŸåŠæ¹æ³ã«ã¯äžèšããããŸãã
-
ããã©ã«ãå€ããå šãå€åããªãã¢ããªãã¥ãŒãã«ã¯ããŒãæããªãã
äŸãã°ãäžéæ床ããŒã®å€ã 1 ã®ãŸãŸã§å€åããªãã®ã§ããã°ããŒãåé€ããŠããŸããŸãã OPTPiX SpriteStudio 5.3.5 以éã§å¯Ÿå¿ããããç¡å€åããŒã®åé€ãæ©èœãå©çšããã -
åãçµæãããããã¢ããªãã¥ãŒãèšå®ã¯ããªãã¹ã䜿çšã¢ããªãã¥ãŒããçµã£ãŠè¡ãã
äŸãã°ãããŒããå転ããå Žåãäžäž/å·Šå³å転ã¢ããªãã¥ãŒããæå®ããããããX/Y ã¹ã±ãŒã«å€ã«è² æ°ãæå®ããããšã§å転ããæ¹ãè¥å¹²é«éã«ãªããŸãã
ãŸããé衚瀺:ON ãš äžéæ床=0 ã§åæ§ã®çµæãåŸãããŸãããCPUè² è·ã«ãããŠã¯ã»ãŒå·®ã¯ãããŸããã -
ã§ããéãããŒãæ°ãæžããã
åçããäžã§å¿ èŠã®ãªãããŒãã¯åé€ããŸãããã
ãªããv1.0 以éã§ã¯ãè£éèšç®ãã€ã³ããŒãæã«è¡ããããããžã§è£éãæžãã㊠ç·åœ¢è£éã§ä»£æ¿ãããªã©ã®å·¥å€«ãè¡ã£ãŠãé床ã«å·®ã¯åºãŸããã
å éšåŠçã®é«éåã«ã€ããŠã¯ä»åŸã®ã¢ããããŒãã§å¯Ÿå¿ãæ€èšããŠããŸãã
(2014/10/21 v1.1 æç¹)
è£è¶³
é衚瀺=ON ã®å Žåãã¡ãã·ã¥ã®è©²åœããŒãã¯ãã€ã³ãã£ã³ã°ã®ç»é²ã«ãããªããããäžéæ床=0ã«æ¯ã¹ããšã
a. ããŒãã®è¡šç€ºç»é²+ãœãŒã
b. ãã€ã³ãã£ã³ã°
c. é ç¹ããã¯ã»ã«ã·ã§ãŒã
ãããã®åŠçãè¡ããªãåãå
ãã«è»œããªããŸãã
ãšã¯ãããã¢ãã¡ã®æŽæ°åŠçèšç®ããäž»èŠãªããŒãåŠçã¯éãããããã®å·®ã¯ããå
ããªãã®ãšèããããŸãã
æ³å®ä»¥äžã«ãããŒã³ãŒã«ãå¢ããã®ã¯ãªãã§ããïŒ
ãŸããSS5Player for Unity v1.1 ããã¯ã䞻㫠OPTPiX SpriteStudio v5.3.0 ã§è¿œå ãããã€ã³ã¹ã¿ã³ã¹æ©èœã«å¯Ÿå¿ããäžã€ãåªå 床ã¢ããªãã¥ãŒãã«ããèšå®ãããæç»é åºãå®ãããã以äžã®æ§ãªæé ã§æç»ããŒãã䞊ã¹æ¿ããŠããŸãã
-
ïŒ. åã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ãã®ã«ãŒãããŒãäœçœ®ã§ã®ïŒã«ã¡ã©åº§æšç³»ã«æ圱åŸã®ïŒZ座æšã§ãœãŒã
-
ïŒ. åã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ãå ã§ããŒãã®æç»åªå 床ã§ã®ãœãŒã
-
"åªå 床"ã¢ããªãã¥ãŒãã®ããŒãããã°ãã®å€ãããªããã°ããŒãã®é çªã«ãªããã
-
ïŒ. 2ã§ãœãŒããããåã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ãã1ã§ã®åªå 床ã«åŸã£ãŠåéããŠã該åœããäœçœ®ã«ã€ã³ã¹ã¿ã³ã¹ããŒããå²ã蟌ãŸããåŸã«ã䜿çšãããªã¢ã«ïŒãã¯ã¹ãã£ãåææ¹æ³ïŒæ¯ã§ã®äœ¿çšé åºãèæ ®ããŠãããããã
ãã®ããã1ãªããžã§ã¯ãã«è€æ°ã®ãããªã¢ã«ã䜿çšããŠããç¶æ ã§ã¯ãZ座æšã調æŽããŠããããŒã³ãŒã«åæ°ã¯ã»ãšãã©åæžã§ããŸããã â»2ã®ãœãŒãã®çµææç¹ã§ãã¢ãã¡ãŒã·ã§ã³å ã§è€æ°ã®ãããªã¢ã«ã«åãããŠãããããããã§ãããŒã³ãŒã«ãçºçããŠããŸãããã§ãã
ãããŒã³ãŒã«åæžãæåŸ ããå Žåã¯ããªãã¹ã1ãªããžã§ã¯ããè€æ°ãããªã¢ã«ã§æ§æããã ã§ããéã1ãããªã¢ã«ïŒ1åæãªãã¬ãŒã·ã§ã³ã»1ãã¯ã¹ãã£ïŒã§æ§æããå¿ èŠããããŸãã
ãŸãã䜿çšããŠãããããªã¢ã«ïŒãã¯ã¹ãã£ãåææ¹æ³ïŒãïŒã€ã§ãã£ãŠãããåªå 床ããšãããŒãäœçœ®ãã®èšå®ã«ãã£ãŠã¯ãïŒãããå€ããããŒã³ãŒã«ããããå ŽåããããŸãã ãåªå 床ããšãããŒãäœçœ®ãé ã§ãããŒãã衚瀺ãããé åºããèŠãŠãã£ãæã«ããã¯ã¹ãã£ãåææ¹æ³ãåãæ¿ããåæ°åã ããããŒã³ãŒã«ãããããŸãã
â»ãã®å Žåã®ããŒãäœçœ®ãšã¯ãSSã®ã¿ã€ã ã©ã€ã³äžã§ã®ããŒãã®äžäžäœçœ®ãã®ããšã§ããç°ãªãããŒãã§ãåãåªå 床ã®å€ãèšå®ãããŠããå ŽåãSS5ã®ã¿ã€ã ã©ã€ã³äžã§äžã«äœçœ®ããŠããããŒãã®æ¹ãåªå 床ãäœãããšããæ±ãã«ãªããŸãã
ãããŒã³ãŒã«ã®å¢ãæ¹ãããããããŸãã
ã»1. ïŒã€ã®ã¢ãã¡ã§äœ¿ã£ãŠãããã¯ã¹ãã£ãïŒã€ã®å Žå
è€æ°ã¢ãã¡éã§ãããããããããŒã³ãŒã«ã¯æžããŸãã ãã ããç°ãªããã¯ã¹ãã£ãåææ¹æ³ã䜿ã£ãŠããã¢ãã¡å士ã§ã¯ãZ座æšãåãå€ã®å Žåã äºãã®ããŒããéãªãåã£ãŠããªããŠãèªåçã«ã¯ããããããŸããã ãã®ããããã¯ã¹ãã£å¥ã«ã¬ã€ã€ãŒãæèããZ座æšã®æå®ãå¿ èŠã«ãªããŸãã
äŸãåºããšäžèšã®ããã«ãªããŸãã
A) äžèšã®æ§ã«ïŒã€ã®ã¢ãã¡ãã¬ãããäºããéãªãåããªãããã«X/YãããããŠZ座æšããã¹ãŠåãã«ãããšããããŒã³ãŒã«ãïŒãïŒã«ãªããŸãã ïŒïŒã«ãªããïŒã«ãªããã¯ãUnityã®å éšåŠçã§ã®ãªããžã§ã¯ãã®å®è¡é åºã«äŸåããå®è¡ææ¯ã«ç°ãªãå¯èœæ§ããããŸãïŒã
äŸïŒ
- ã¢ãã¡1(ãã¯ã¹ãã£A)ããããZ座æš=0
- ã¢ãã¡2(ãã¯ã¹ãã£B)ãããZ座æš=0
- ã¢ãã¡3(ãã¯ã¹ãã£A)ããZ座æš=0
- ã¢ãã¡2(ãã¯ã¹ãã£B)ãããZ座æš=0
B) äžèšã®Z座æšãäžèšã®ããã«ïŒã€ã®ã¬ã€ã€ãŒã«åããŠãããã¯ããããŒã³ãŒã«ãïŒã«ãªããŸãã
äŸïŒ
- ã¢ãã¡1(ãã¯ã¹ãã£A)ãããããZ座æš=0
- ã¢ãã¡2(ãã¯ã¹ãã£B)ããããZ座æš=10
- ã¢ãã¡3(ãã¯ã¹ãã£A)ãããZ座æš=20
- ã¢ãã¡2(ãã¯ã¹ãã£B)ããããZ座æš=10
C) ãã¯ã¹ãã£Aãåé¢(Z=0) ã« ãã¯ã¹ãã£Bãèé¢(Z=10) ã«ãããšãããŒã³ãŒã«ã¯ïŒã«ãªããŸãã
äŸïŒ
- ã¢ãã¡1(ãã¯ã¹ãã£A)ããããããZ座æš=0
- ã¢ãã¡2(ãã¯ã¹ãã£B)ãããããZ座æš=10
- ã¢ãã¡3(ãã¯ã¹ãã£A)ããããZ座æš=0
- ã¢ãã¡2(ãã¯ã¹ãã£B)ãããããZ座æš=10
ã»2. ïŒã€ã®ã¢ãã¡ã§ïŒã€ä»¥äžã®ãã¯ã¹ãã£ã䜿ã£ãŠããå Žå
å¥ã®ãªããžã§ã¯ãéã§ã¯ãã»ãšãã©ãããã³ã°ã¯ãããŸããã (â»çç±ã¯ "Q. æ³å®ä»¥äžã«ãããŒã³ãŒã«ãå¢ããã®ã¯ãªãã§ããïŒ" ãã芧ãã ãã) ã€ãŸããïŒã€ã®ã¢ãã¡ã§ïŒã€ã®ãã¯ã¹ãã£ã䜿ããããŒã³ãŒã«ãïŒãšãªãå Žåã¯ã åãã¢ãã¡ã®ãªããžã§ã¯ãã§ããŒããéãªããªãããã«é 眮ããŠãã ã»ãŒãªããžã§ã¯ãã®æ°ã ããããŒã³ãŒã«ãå¢ããŸãã
ãã¯ã¹ãã£ãïŒæ䜿çšããã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ããïŒã€é 眮ããå Žåã®äŸã
-
ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã1
- ããŒã1(ãã¯ã¹ãã£Aã®æç»)
- ããŒã2(ãã¯ã¹ãã£Bã®æç»)
-
ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã2
- ããŒã1(ãã¯ã¹ãã£Aã®æç»)
- ããŒã2(ãã¯ã¹ãã£Bã®æç»)
-
ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã3
- ããŒã1(ãã¯ã¹ãã£Aã®æç»)
- ããŒã2(ãã¯ã¹ãã£Bã®æç»)
ãã®å Žåãã¯ã¹ãã£Aãšãã¯ã¹ãã£Bã®åãæ¿ãæã«ãããŒã³ãŒã«ãçºçãããããŒã³ãŒã«ã¯ïŒã«ãªããŸãã
ãã ãããããã³ã°ãäžåãããªãããšãããšãããã§ã¯ãªãããããŒã³ãŒã«ãåæžãããå ŽåããããŸãã ãã®å Žåã®äŸã«ã¯ãäžèšã®ãããªå ŽåããããŸãã
-
ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã1
- ããŒã1(ãã¯ã¹ãã£A)
- ããŒã2(ãã¯ã¹ãã£B)
- ããŒã3(ãã¯ã¹ãã£A) âã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã2ã®ããŒã1ãšãããã³ã°ããã
-
ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã2
- ããŒã1(ãã¯ã¹ãã£A) âã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã1ã®ããŒã3ãšãããã³ã°ããã
- ããŒã2(ãã¯ã¹ãã£B)
- ããŒã3(ãã¯ã¹ãã£A) âã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã3ã®ããŒã1ãšãããã³ã°ããã
-
ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã3
- ããŒã1(ãã¯ã¹ãã£A) âã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ã2ã®ããŒã3ãšãããã³ã°ããã
- ããŒã2(ãã¯ã¹ãã£B)
- ããŒã3(ãã¯ã¹ãã£A)
ãã®å ŽåãããŒã³ãŒã«ã¯ïŒïŒã§ã¯ãªãïŒïŒã«ãªããŸãã
OPTPiX SpriteStudio Import-Settingsãã€ã¢ãã°ã«Importãã¿ã³ã衚瀺ãããªã
-
察å¿æ¹æ³ïŒãã€ã¢ãã°ãåºãã
OPTPiX SpriteStudio Import-Settingsãã€ã¢ãã°ã«Importãã¿ã³ã衚瀺ãããªãå ŽåããããŸãã ãã¿ã³ã¯ãã€ã¢ãã°ã®ããã®æ¹ã«é ããŠããããã€ã¢ãã°ã®å³äžããã©ãã°ãåºããããšã§è¡šç€ºãããŸãã
OPTPiX SpriteStudio 5 ãš SS5PlayerForUnity ã§æç»çµæãç°ãªã
-
察å¿æ¹æ³ïŒã¢ãã¡ããŒã¿ã®Ver.4ãšã®äºææ§ã確èªãã
SS5PlayerForUnityã§ã¯SpriteStudioæ¬äœã®Ver.4ãšã®äºææ§ã«å¯Ÿå¿ããŠããŸããã ãããžã§ã¯ãèšå®ã®äºææ§ã®é ç®ã«ãããŸããVer.4ãšã®äºææ§ã¯ãã¹ãŠãã§ãã¯ãå€ããç¶æ ã§ããŒã¿ãäœæããŠãã ããã
ã¢ãã¿ãŒã®çãæ¿ãã®ãããªãããŒãã®å·®ãæ¿ããããã
-
SS5PU v1.1ã®å Žå
ã¢ãã¿ãŒã®å·®ãæ¿ãå¯èœãªããŒããã€ã³ã¹ã¿ã³ã¹ããŒããšããŠäœæã»èšå®ããŠã ããããScript_SpriteStudio_PartsInstanceã®PrefabChangeInstanceé¢æ°ããªã©ã§å·®ãæ¿ããŸãã
ã»å¿çšãã¯ããã¯ïŒã€ã³ã¹ã¿ã³ã¹ããŒãã®åãæ¿ã
ã€ã³ã¹ã¿ã³ã¹ããŒãã䜿ããæ®æ®µã¯ãããŒã®éæã®ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ããåŒã³åºãããã«ããŠãããŸãã ãå®éšæ©èœããšããŠæäŸãããŠããScript_SpriteStudio_PartsInstanceã®AnimationChangeInstance/PrefabChangeInstanceé¢æ°ã䜿çšããŠåçããã€ã³ã¹ã¿ã³ã¹ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ããåãæ¿ããäºãã§ããŸãã
äŸãã°ã¢ãã¿ãŒã®è¡£è£ ãªã©ãå€æŽããå Žåã«ãè¿œå ã®ãšãã§ã¯ãçã衚瀺ãããšãã£ã䜿ãæ¹ãèããããŸããïŒæãŸããåäœä»æ§ã«ãã£ãŠã¯ãåé¢æ°ã®æ¹é ãå¿ èŠã«ãªãå ŽåããããŸãïŒ
-
SS5PU v1.0ã®å Žå
A. çãæ¿ãã®ããç®æïŒäŸãã°ã髪ããæããªã©ïŒãå¥ã®ãã¯ã¹ãã£ïŒã»ã«ãããïŒã§äœæãããïŒãã®éã«ãæ°ããã»ã«ãããã¯ã倧å ã®ã»ã«ãšåã倧ããã»åãé 眮ã»åãããããã§ã»ã«ããããäœæããå¿ èŠããããŸãïŒ
B. Unityäžã§ããã®ãã¯ã¹ãã£ãå²ãåœãŠãæ°èŠãããªã¢ã«ãã€ã³ã¹ã¿ã³ã¹ã®Script_SpriteStudio_PartsRootã®ãpublic Material[] TableMaterialãã®è©²åœç®æã«èšå®ãè¡ãã
以äžã®æ¹æ³ã§å·®ãæ¿ããå¯èœã§ããïŒAãšBã¯åæã«è¡ãå¿ èŠããããã©ã¡ããçæ¹ã ãã§ã¯å®çŸãäžå¯èœã§ãïŒ
ã¢ãã¿ãŒã®ãããªãã£ã©ã¯ã¿ãäœæããå Žåãã¢ããªã±ãŒã·ã§ã³å šäœã§ã®ãããŒã³ãŒã«ã®å¢å ã®å¯èœæ§ããããŸãã
ã¹ã¯ãªããããã®ã¢ãã¡ã®åæ¿æã«åçãã¬ãŒã ãïŒã«æ»ããªãããã«ããæ¹æ³
-
察å¿æ¹æ³
Script_SpriteStudio_PartsRootã®ãAnimationPlayãé¢æ°ã®åŒæ°ãFrameInitialãã«ãããããèªã¿åºããŠãããïŒåã¯ã©ã¹ã®ïŒFrameNoNowã®å€ãèšå®ããããšã§å¯èœã§ãã
ã©ãã«ãªã©ã§åçåºéãèŠå®ããŠããå Žåã«ã¯ãFrameNoStartïœFrameNoEndã®éã«ãªãããã«é æ ®ããŠå€ãäžããå¿ èŠããããŸãã
-
å¶é åçããŠããã¢ãã¡ãŒã·ã§ã³ãšæ°èŠã«åçããã¢ãã¡ãŒã·ã§ã³ãšã§ããã¬ãŒã æ¯ã®åããåãã§ããå¿ èŠããããŸãã
æäœã§ããå šãã¬ãŒã æ°ã¯åãã§ãªããŠã¯ãªããŸãããç°ãªãå Žåãé åå€ãåç §ããããšèšãäŸå€ãšã©ãŒãåºãŠããŸãå ŽåããããŸããå šãã¬ãŒã ã®åããåãã§ãªãå Žåãã³ãé£ã³ãããããªçŸè±¡ãèµ·ãããŸãã
NGUI äžã®ã³ã³ãããŒã«ã®éã«æã¿ãã
-
æŠèŠ
ååãšããŠãNGããšãªããŸãã
ãããŒã³ãŒã«åæžã®æé©åãšããã«ããããªã¢ã«äœ¿çšã®éã®è¡šç€ºã®å³å¯æ§ãä¿ã€ããã«æ¬¡ã®ãããªèšèšãšãªã£ãŠããŸãã
SSã§äœæããã¢ãã¡ãŒã·ã§ã³ãããŒãæ¯ã§æç»ããã®ã§ã¯ãªããSSã§äœæãããã¢ãã¡ãŒã·ã§ã³ããŒã¿ã®ã¿ããŸãšããŠæé©åãã¡ãã·ã¥ãããã³ã°ããŠãããŒãã®æç»é åºãèæ ®ããŠã§ããéãå°ãªãã¡ãã·ã¥ã«åæããŠãããŸããUnityã«æç»æ瀺è¡ããŸãã ãã®åäœã«ãã£ãŠUnity-Nativeãªããžã§ã¯ããšã®æç»ãæ··åšãããäºãé£ãããªã£ãŠããŸãã
-
察å¿æ¹æ³ïŒssaeã®åå²ãè¡ã
éã«NGUIãUnity-Nativeãªããžã§ã¯ããã¯ããäœçœ®ã§SSäžã§ã¢ãã¡ãŒã·ã§ã³ãªããžã§ã¯ããåå²ããå¥ã ã®ssaeã«ããŸãã åãssaeã®äžã§2ã€ã®ã¢ãã¡ãŒã·ã§ã³ãäœã£ãŠåå²ããæ¹æ³ã§ãè¯ãã§ãããæ ŒçŽããŒã¿ãšããŠã¯ç¡é§ãå€ããªããŸãã
ãã®2ãªããžã§ã¯ãã2ã€ã®Viewã«å¥ã ã«é 眮ããViewã®DrawManagerã®æç»é èšå®ãå€æŽããŸãããã®éã«äž¡Viewã®éã«ãRender-Queue Offsetãã䜿çšããŠãããçšåºŠã®ãïŒæç»Queueã®ïŒç©ºãããäœã£ãŠãããŸãã éã«æãNGUIãUnity-Nativeãªããžã§ã¯ãã®æç»Queueãããã®ã空ããã®éã«å ¥ãããã«èšå®ããŸãã
åçã«ã¢ãã¡å šäœã®è²ãéæ床ãå€æŽãã
-
察å¿æ¹æ³ïŒäžåºŠã¬ã³ããªã³ã°ãè¡ã£ãŠããæäœããã
ã¢ãã¡å šäœã®è²ãéæ床ãªã©ãå€æŽãããå ŽåãäžåºŠåœè©²ã¢ãã¡ãŒã·ã§ã³ããã¯ã¹ãã£ã«ã¬ã³ããªã³ã°ããŠããã®ã¬ã³ããªã³ã°ç»åãæç»ã«çšããéã«ãQuadãªã©ã®ã¡ãã·ã¥ã®é ç¹ã«ã©ãŒãæäœããŠè²ãéæ床ãå€æŽãããšãã£ãæ¹æ³ã«ãªããŸãã
-
çç±
éæ床ãå€æŽããå ŽåãSS5PUã§ã¯åããŒãã¯å¥ã ã«ã¡ãã·ã¥ç®¡çãããŠãããããåéæå€ãæäœãããšå€éåéæïŒå¥ã®ããŒããšã®ç¶ãç®ãèŠããŠããŸãïŒæç»ãèµ·ãã£ãŠããŸããæåŸ ããçµæãåŸãããŸããã
é ç¹ã«ã©ãŒãæäœããå ŽåãUnityã®Meshã¯ã©ã¹ã®ã¡ã³ãå€æ°ã䜿ããã£ãŠãã圢ã«ãªãããïŒæ¬æ¥é ç¹ã«ã©ãŒãå ¥ããããã®é åãããªãŒããŒã¬ã€è²ãå ¥ããããã®é åã«å€çšãããŠãããŸãïŒãé ç¹ã«ã©ãŒãæ ŒçŽããé åãååšããŠããŸããã
ç¹å®ããŒãã®è²ãéæ床ãå€æŽãã
ç¹å®ããŒãã®è²ãå€ããå Žåã¯ã¢ãã¡ãŒã·ã§ã³åçåŠçã®ã¡ãã·ã¥å å·¥ã®åŠçã«æãå ããå¿ èŠããããŸãã
-
察å¿æ¹æ³ïŒSS5PUãæ¹é ãã
ç¹å®ããŒãã®ãªãŒããŒã¬ã€è²ãåçã«èšå®ããããã®SS5PUã®æ¹é æ¹æ³ã«ãªããŸãã
ãããå¿çšããŠãScript_SpriteStudio_PartsRootã«åçãªãŒããŒã¬ã€è²ãæã€ããšã§ãåScript_SpriteStudio_Triangle2/4ããScriptRootã¡ã³ããçµç±ããŠãã¢ãã¡ãŒã·ã§ã³å šäœã®è²ãåçã«å€åãããæ¹æ³ã«ã転çšå¯èœã§ãã
ããŒãã®ã€ã³ã¹ã¿ã³ã¹æ¯ã«ååšããŠããScript_SpriteStudio_Triangle2/4.csã®Updateé¢æ°ã®äžã«ãããSpriteStudioData.UpdateMeshãã®åŠçã®çŽåŸã«dataMeshã®color32ã¡ã³ãã®å€ãæžãæããŸãã
å®å šãªã®ã¯ãå¥åã«ãColor32[] DataColor32 = new Color32[CountVertexData];ããšããŠåžæãããªãŒããŒã¬ã€è²ã®ããŒãã«ãäœæãããããdataMeshã®color32ã¡ã³ãã«åå²ãåœãŠããæ¹æ³ãšãªããŸãã
ãªãŒããŒã¬ã€è²ã®åæãªãã¬ãŒã·ã§ã³æ¹æ³ã®èšå®ã¯ãdataMeshã®uv2ã¡ã³ãã®.yã«ãªãã¬ãŒã·ã§ã³çªå·ïŒLibrary_SpriteStudio.KindColorOperationåæïŒãèšå®ããããšã§èšå®å¯èœã§ãã
ãã ããåæã®å€ãfloatã«ãã£ã¹ãããŠãã®ãŸãŸäžããŠããŸããšãæµ®åå°æ°ã®äžžã誀差ãèµ·ããå¯èœæ§ãããã®ã§ããã£ã¹ãåŸã«+0.01fçšåºŠã®åŸ®å°ãªå€ãå ç®ããŠããããšãæšå¥šããŸãã
-
泚æç¹
CountVertexDataã®å ·äœçãªå€ã«ã€ããŠã¯ãåŒã³åºãã¹ãã©ã€ãããŒãã®ã¹ã¯ãªããããïœ_Triangle2ããïœ_Triangle4ããšã§ç°ãªããŸãã
Color32ã®Aã®æåã¯ãSSäžã§ã®ã«ã©ãŒãã¬ã³ãã®ãïŒ ãã«å¯Ÿå¿ããŠããç¹ã§ããSSäžã®ã«ã©ãŒãã¬ã³ãã®Aã«å¯Ÿå¿ããŠããã®ã¯ãdataMeshã®uv2ã¡ã³ãã®.xã«ãªããŸãã ãã®å€ãå€æŽãããšããŒããéããŠããŸããŸãã®ã§ãåºæ¬çã«ã¯å€æŽããªãããšãæšå¥šããŸãã
-
åè
ãã®ãããã®åŠçã«ã€ããŠã¯ãLibrary_SpriteStudio.csã®AnimationDataSpriteã¯ã©ã¹å ãUpdateMeshãé¢æ°ã®ãSet Vertex-Datasãã®æ³šé以éã®åŠçãåèã«ãªããšæããŸãã
ãSpriteStudioData.UpdateMeshãé¢æ°ã«åŒæ°ãè¿œå ããäžã§ããUpdateMeshãé¢æ°ã®å 容ãæ¹é ããã圢ã§ãæ§ããŸããã ããããã®ã¯ã©ã¹å ã«Color/Color32ãšãªãã¬ãŒã·ã§ã³æ¹æ³ãæ ŒçŽãããããªå Žåãprivateã¹ã³ãŒãã§å€æ°å®£èšãè¡ããããããã£ã§å€éšããæäœããæ¹æ³ãæšå¥šããŸãã
ã€ã³ã¹ã¿ã³ã¹ããŒãã®æç»é åºã OPTPiX SpriteStudio 5 ãšç°ãªã
- 察å¿æ¹æ³ïŒåªå 床ãèšå®ãã
åãéå±€ã«è€æ°ã®ã€ã³ã¹ã¿ã³ã¹ããŒããé 眮ãããŠããå ŽåãSpriteStudio äžã§ã¯åžžã«ããŒãã®äžŠã³é (äžã奥)ã«ãªããŸããã Unity äžã§ã¯ãã®éãã«ãªããªãã±ãŒã¹ããããŸãã ãã®å Žåã¯ã"åªå 床"ã¢ããªãã¥ãŒãã®ããŒãæã¡ãæç»é åºãæ瀺çã«æå®ããããã«ããŠãã ããã
ã«ã©ãŒãã¬ã³ãå€ã»äžéæ床å€ãªã©ã®ã¢ããªãã¥ãŒãå€ã®ååŸæ¹æ³
äŸ) 芪ããŒãã®ã«ã¬ã³ããã¬ãŒã ã®äžéæ床ãåŸãã
FrameNo = RootNode.FrameNoNow;
OpacityRate = ParentNode.SpriteStudioData.AnimationDataOpacityRate[FrameNo];
ã»ã«ã©ãŒãã¬ã³ãã®å Žå
ParentNode.AnimationDataColorBlend
ã»ãã®ä»ãåçš®ã¢ããªãã¥ãŒã
SpriteStudioData ã¡ã³ããä¿æããŠããŸãã
åçš®ã¢ããªãã¥ãŒãã®é
ååã¯ä»¥äžã®ã¯ã©ã¹ã®å®çŸ©äœçœ®ãã芧ãã ããã
Library_SpriteStudio.AnimationData
äžéæ床ã¢ãã¡(ããŒãã¬ãŒã )ãæã£ãŠãããïŒ
éåžžããŒã(Script_SpriteStudio_Triangle* ã¯ã©ã¹) Part ã«å¯ŸããŠ
if (Part.SpriteStudioData.AnimationDataOpacityRate.Length > 0)
{
// ã¢ãã¡ããã
}
ããŒãã«ã¢ã¿ãããããã¹ã¯ãªããã®éã
Script_SpriteStudio_PartsRoot ã«ãŒãããŒã
Script_SpriteStudio_PartsNULL NULLããŒã
Script_SpriteStudio_Triangle2 éåžžããŒã(é ç¹å€åœ¢ãªã)
Script_SpriteStudio_Triangle4 éåžžããŒã(é ç¹å€åœ¢ãã)
ã«ãŒãããŒãã®ååŸæ¹æ³
äžèšã¡ã³ããã«ãŒãããŒããæããŸãã
public Script_SpriteStudio_PartsRoot ScriptRoot;
ã«ãŒãããŒã(Script_SpriteStudio_PartsRoot)èªèº«ã¯ãã®ã¡ã³ããæã£ãŠããŸãã
ã€ã³ããŒãæã« xxxx keyframe is out of range!! Parts:ããŒãå frame:æé ãšãããšã©ãŒãåºã
-
åå
ãã㯠ã¢ãã¡ãŒã·ã§ã³ã®æçµãã¬ãŒã ãè¶ ããå Žæã«ããŒãã¬ãŒã ãæãããssaeãã¡ã€ã«ãã€ã³ããŒãããéã«åºãŸãã
xxxx ã®éšåã¯è©²åœããã¢ããªãã¥ãŒãã®åã瀺ããŸãã
äŸãã° Vector3.Z ãšããå Žåã¯ãZ座æšããZ軞å転ã®ããŒã瀺ããŸãã
Float ã®å Žåã¯äžéæ床ãåœããååŸãBool ãªãå転ãé衚瀺ãã©ã°ãªã©ãšæšæž¬ãããŸãã -
察åŠæ¹æ³
- åé¡ã®ssae ãã¡ã€ã«ã OPTPiX SpriteStudio ã§éããŠè©²åœããŒãã®è©²åœæéã«ç§»åããã«ãŒããšãã£ã¿ãéããŸãã
- åè¿°ã®ã¢ããªãã¥ãŒãã®åããæšæž¬ãããã¢ããªãã¥ãŒãã«åãæ¿ããŠãæçµãã¬ãŒã ãè¶ ããæéã«çœ®ãããããŒãã¬ãŒã ãæ¢ããŸãã
- (ç¯å²å€ã®ããŒãã¬ãŒã ãšïŒã€åã®ããŒãã¬ãŒã ãè£éã§ã€ãªãã£ãŠããå Žåããã¬ãŒã ã³ã³ãããŒã«äžã§ã該åœã¢ããªãã¥ãŒãã®æçµãã¬ãŒã ã«ããŒãæã¡ãŸã)
- 次ã«ãã«ãŒããšãã£ã¿äžã§ç¯å²å€ã®ããŒãã¬ãŒã ãå·Šãã©ãã°ã§å²ãã§éžæããDelete ããŒããCtrl+X ãæŒããŠåé€ããŸãã
- ãã¡ã€ã«ãä¿åããå床Unity ã§ãããžã§ã¯ããã¡ã€ã«ãã€ã³ããŒãããŠãã ããã
v1.0 ã§ã¯ãããªã¢ã«ããã¯ã¹ãã£ãïŒã€ãã䜿ã£ãŠããªãã®ã«ãããŒã³ãŒã«ãã¢ãã¡ã®æ°ã ãå¢ãã
-
2014/9/24 çŸåš v1.1 beta2 ã«ãŠæ¹åæžã¿ã§ãã
-
åå
ãã¡ãã¯äžèšã®çç±ã«ããçŸåšã®ä»æ§ã«ãªã£ãŠããŸãã
- SS5ã§ã®ãåªå 床ãã¢ããªãã¥ãŒãã®åçŸæ§ã®ç¢ºå®æ§ã®åäžïŒ1ãªããžã§ã¯ãå ã§è€æ°ãããªã¢ã«ã䜿çšããå Žåã®æç»ã®æ£ããïŒ
- è€æ°ãªããžã§ã¯ãã®Z座æšã§ã®æç»åªå 床ã確å®æ§ã®åäž
- è€æ°ãªããžã§ã¯ããåäžZå€ã§é 眮ããéã®ãZãã¡ã€ãã§ã®åŠçé床äœäžã®è»œæž
- Flash ãããªãã·ã³ã°ãžã®å¯Ÿå¿ã®ãã
以äžãå®çŸããããã«ãããªã¢ã«ãã¢ãã¡ãŒã·ã§ã³æ¯ã«è€è£œããã·ã§ãŒãå ã®æç»åªå 床ãæžãæããããã«ãªã£ãŠããŸãã
- 察åŠæ¹æ³
çŸåšã®ãšãããŠãŒã¶ãŒæ§åŽã§å¯ŸåŠããæ¹æ³ã¯ãããŸããã
ããããªããåè¿°ã®çç±ã®å¹Ÿã€ããšãã¬ãŒããªãããããšã§ãããŒã³ãŒã«ãå¢ãããªãæ¹ä¿®äœæ¥ãv1.1ã«ãŠäºå®ããŠãããŸãã
察å¿ç¶æ³ã¯ãã¡ãã§ç¢ºèªã§ããŸãã