以ä¸ã® using ã追å ãã¦ã using System; using System.Text;ã¨ã³ã³ã¼ãã®æã¯ãããªæãã byte[] bytesToEncode = Encoding.UTF8.GetBytes (inputText); string encodedText = Convert.ToBase64String (bytesToEncode); ãã³ã¼ãã®æã¯ãããªæãã«è¨è¿°ããã¿ããã§ãã byte[] decodedBytes = Convert.FromBase64String (encodedText); string decodedText = Encoding.UTF8.GetString (decodedBytes); Base64 encode/decoding? - Unity Answers http://answers.unity3d.com/qu
è¶ ã¾ã¨ã System.Security.Cryptography.HMACSHA512ã¯ã©ã¹ã使ãã°ãHMAC-SHA512ã®ããã·ã¥ãè¨ç®ã§ãã¾ãã ããã·ã¥ãè¨ç®ããããã¼ã¿ãByte[]ã«ãã¦ã³ã³ã¹ãã©ã¯ã¿å¼æ°ã«æ¸¡ãã°OKã using System; using System.Text; namespace HMAC_SHA512Sample { class Program { static void Main(string[] args) { HMAC_SHA512(); } private static void HMAC_SHA512() { // HMAC-SHA512ãè¨ç®ããæåå var testStr = "param1=val1¶m2=val2"; // ãã¼ã«ããæåå var secretKey = "password"; // åæååããã¤ãé å
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
JsonUtility ã¯ã©ã¹ã使ç¨ãã¦ãUnity ãªãã¸ã§ã¯ã㨠JSON å½¢å¼éã§å¤æã§ãã¾ãã ä¾ãã°ãJSON ã·ãªã¢ã©ã¤ã¼ã¼ã·ã§ã³ã使ç¨ãã¦ã¦ã§ããµã¼ãã¹ã¨ããåããããããã¼ã¿ãããã¹ããã¼ã¹ã®å½¢å¼ã«ç°¡åã«ããã¯ãããã¢ã³ããã¯ããããããã¨ãã§ãã¾ãã JSON å½¢å¼ã¨ã®ã·ãªã¢ã«åã§ã¯ãâæ§é åãããâ JSON ã¨ããæ¦å¿µã使ç¨ãã¦ãã¾ããã¤ã¾ããã¯ã©ã¹ãæ§é ä½ãä½æãã¦ãJSON ãã¼ã¿ã«ä¿åãããå¤æ°ãè¨è¿°ãã¾ãã以ä¸ã¯ãã®ä¾ã§ãã [Serializable] public class MyClass { public int level; public float timeElapsed; public string playerName; } ããã¯ã3 ã¤ã®å¤æ° (levelãtimeElapsedãplayerName) ãå«ãç°¡æ㪠C# ã¯ã©ã¹ãå®ç¾©ãã
ä»®æ³ãã©ã¤ãã¼ããµã¼ãã¼(VPS)ãç°¡åã«å©ç¨ã§ãã Amazon Lightsail 㯠ã¤ã³ã¹ã¿ã³ã¹(EC2 ã® AMI ç¸å½) ã¹ãã¬ã¼ã¸(EC2 ã® EBS ç¸å½) ã®ç²åº¦ã§ã¹ãããã·ã§ãããä½æã§ãã¾ãã ä»å㯠Cloudwatch Events 㨠Lambda ãé£æºããã¦ãã¹ãããã·ã§ãããå®æåå¾ããæ¹æ³ãç´¹ä»ãã¾ãã API ç解ã®ããã« AWS CLI ããã¹ãããã·ã§ãããä½æããæ¹æ³ã¯æ¬¡ã®è¨äºãåç §ãã ããã AWS CLIããLightsailã®ã¹ãããã·ã§ãããä½æãã ï½ Developers.IO awslabs ã®æä¾ããã½ãªã¥ã¼ã·ã§ã³ AWS ããã®ã½ãªã¥ã¼ã·ã§ã³ã AWS ãµã¼ãã¼ã¬ã¹ã¢ããªã±ã¼ã·ã§ã³ã¢ãã« (AWS SAM) ã§æä¾ãã¦ããããããã®ãã³ãã¬ã¼ãããããããæ´»ç¨ããã¦ããã ãã¾ãã ã¬ãã¸ã㪠https://github.com
2019/04/16 VFXã¢ãããã¼ ã§ãããã¨ãçå®ã«ããã質å®åå¥ãªVFXã¯ã¼ã¯ãæ ç»ããã³ã°ãã ã å®ç¾ä¸å¯è½ã¨è¨ãããè¶ å¤§ä½ã¨ã³ã¿ã¼ãã¤ã³ã¡ã³ããå¾ æã®æ ç»åããããæ¯ãããããã§ãã·ã§ãã«ã«å¾¹ããVFXã¯ã¼ã¯ãç´è§£ãã â»æ¬è¨äºã¯æåãCGWORLD + digital videoãvol. 249ï¼2019å¹´5æå·ï¼ããã®è»¢è¼ã¨ãªãã¾ãã TEXT_ç¦äºéå¼ EDIT_沼åæ人 / Arihito Numakuraï¼CGWORLDï¼ãå±±ç°æ¡å / Momoko Yamada æ ç»ããã³ã°ãã ã4æ19æ¥ï¼éï¼ãã¼ãã·ã§ã¼ åä½ï¼å æ³°ä¹ ããã³ã°ãã ãï¼éè±ç¤¾ãé±åã¤ã³ã°ã¸ã£ã³ããé£è¼ï¼ï¼ç£ç£ï¼ä½è¤ä¿¡ä»ï¼èæ¬ï¼é»å²© åãä½è¤ä¿¡ä»ãå æ³°ä¹ ï¼æ®å½±ç£ç£ï¼æ²³æ´¥å¤ªéï¼ç¾è¡ç£ç£ï¼æè¤å²©ç·ï¼é²é³ï¼æ¨ªéä¸æ°å·¥ï¼ã¢ã¯ã·ã§ã³ç£ç£ï¼ä¸æåäºï¼VFXã¹ã¼ãã¼ãã¤ã¶ã¼ï¼ç¥è°· èª ãå°åä¸é ï¼ç·¨éï¼ä»äº
// Unity 4.6 ã¾ã§ Debug.Log( string.Format( "Id: {0}", 25 ) ); Debug.LogWarning( string.Format( "Id: {0}", 25 ) ); Debug.LogError( string.Format( "Id: {0}", 25 ) ); Debug.Log( string.Format( "Id: {0}", 25 ), this ); Debug.LogWarning( string.Format( "Id: {0}", 25 ), this ); Debug.LogError( string.Format( "Id: {0}", 25 ), this ); // Unity 5 ãã Debug.LogFormat( "Id: {0}", 25 ); Debug.LogWarningFormat(
C#é¢é£ã§è¨äºã®ããã»ã©ãããªããã©ãã¾ã¨ãã¦ããããã¢ããè¤æ°åæããæãã®è¨äºã§ãã Tipsã¿ãããªãã®ãªã®ã§ããããã«é¢ä¿ã¯ããã¾ããã é åâListå¤æ é åã¨Listã®å¤æã¯ä»¥ä¸ã®ããã«è¡ãã¾ã //é åâList string[] stringArray = new string[] {"test1", "test2"}; List<string> stringList = new List<string>(); stringList.AddRange(stringArray); //Listâé å List<string> stringList = new List<string>(){"test1", "test2"}; string[] stringArray = stringList.ToArray(); ä¸è¨ã®ããã«ã宣è¨æã«{}å ã§åæåããäºãã§ãã¾ãã Li
ãµã¼ãã¼å´ ãµã¼ãã¼å´ã®ããã°ã©ã ã¯ãæå®ãããã¡ã¤ã«ãã¹ã«ã½ã±ãããã¡ã¤ã«ãä½ã£ã¦ã¯ã©ã¤ã¢ã³ãå´ããã®æ¥ç¶ãå¾ ã¡åãã¾ãã server.py ãã®ä¾ã§ã¯ã /tmp/myapp.sock ã¨ãããã¹ã«ã½ã±ãããã¡ã¤ã«ãä½æãã¾ããã¯ã©ã¤ã¢ã³ãå´ããéä¿¡ããããã¼ã¿ãæ¨æºåºåã«åºåããåãå 容ãéãè¿ãã¾ãã import os import sys import socket class Server: def __init__(self, socket_path): self.socket_path = socket_path def start(self): s = self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.bind(self.socket_path) s.listen(1) try: whi
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}