ÔÚLinuxÉÏʹÓÃVisual Studio¾ÙÐÐÓÎÏ·¿ª·¢µÄÍƼöÉèÖÃ
ÔÚlinuxÉÏʹÓÃvisual studio¾ÙÐÐÓÎÏ·¿ª·¢µÄÍƼöÉèÖÃ
½üÄêÀ´£¬Ëæ×ÅLinux²Ù×÷ϵͳÔÚÓÎÏ·¿ª·¢ÁìÓòµÄÈÕÒæÆÕ¼°£¬¿ª·¢Ö°Ô±ÃÇ·×·××îÏÈ̽Ë÷ÔÚLinuxÇéÐÎÏÂʹÓÃVisual Studio¾ÙÐÐÓÎÏ·¿ª·¢µÄ¿ÉÄÜÐÔ¡£Í¨¹ý½«WindowsÉÏÏ°¹ßʹÓõĿª·¢¹¤¾ßǨáãµ½Linuxƽ̨£¬²»µ«¿ÉÒÔÏíÊܵ½LinuxϵͳµÄÎȹÌÐÔºÍÇå¾²ÐÔ£¬»¹Äܳä·ÖʹÓÃLinuxÆÕ±éµÄ¿ªÔ´×ÊÔ´ºÍÉçÇøÖ§³Ö¡£±¾ÎĽ«ÎªÄúÏÈÈÝÔÚlinuxÉÏʹÓÃvisual studio¾ÙÐÐÓÎÏ·¿ª·¢µÄÍƼöÉèÖ㬲¢¸½´øһЩ´úÂëʾÀý¹©Äú²Î¿¼¡£
Ê×ÏÈ£¬ÄúÐèҪ׼±¸Ò»Ì¨ÔËÐÐLinux²Ù×÷ϵͳµÄÅÌËã»ú¡£ÏÖÔÚ£¬ÓÐÐí¶àÖ÷Á÷µÄLinux¿¯Ðаæ¿É¹©Ñ¡Ôñ£¬ÈçUbuntu¡¢DebianºÍFedoraµÈ¡£Äú¿ÉÒÔƾ֤СÎÒ˽ÈËÆ«ºÃÑ¡ÔñÊʺÏ×Ô¼ºµÄ¿¯Ðа棬²¢×°ÖÃ×îеÄÎȹ̰汾¡£ÔÚ×°ÖÃÍê±Ïºó£¬½¨Òéʵʱ¸üвÙ×÷ϵͳºÍ×°ÖÃÐëÒªµÄ¿ª·¢¹¤¾ß£¬ÒÔÈ·±£Äú¿ÉÒÔÕý³£Ê¹ÓÃVisual Studio¾ÙÐпª·¢¡£
½ÓÏÂÀ´£¬ÄúÐèҪװÖÿÉÔÚLinuxϵͳÉÏÔËÐеÄVisual Studio°æ±¾¡£Î¢Èí¹«Ë¾½üÄêÀ´ÍƳöÁËVisual Studio Code (¼ò³ÆVS Code)µÄLinux°æ£¬¸Ã°æ±¾Îª¿ªÔ´Ãâ·ÑÈí¼þ£¬ÌṩÁËÀàËÆWindows°æµÄ¸»ºñÌØÕ÷ºÍ²å¼þÉú̬ϵͳ¡£Äú¿ÉÒÔÔÚVS Code¹Ù·½ÍøÕ¾ÉÏÏÂÔØÊÊÓÃÓÚLinuxµÄ×°Öðü£¬²¢Æ¾Ìý˵Ã÷¾ÙÐÐ×°Öá£×°ÖÃÍê³Éºó£¬Äú¿ÉÒÔƾ֤ÐèÒª´ÓVS Code²å¼þÊг¡Ñ¡Ôñ²¢×°ÖÃÓÎÏ·¿ª·¢Ïà¹ØµÄ²å¼þ£¬ÈçC++¡¢C#ºÍUnityµÈ¡£
ÔÚ¾ÙÐÐÓÎÏ·¿ª·¢Ê±£¬ÎÒÃÇͨ³£»áʹÓÃһЩÓÎÏ·ÒýÇæºÍ¿âÀ´¼ò»¯¿ª·¢Àú³ÌºÍÌá¸ßЧÂÊ¡£ÔÚLinuxƽ̨ÉÏ£¬Óм¸¸öÓÅÒìµÄÓÎÏ·ÒýÇæºÍ¿â¿É¹©Ñ¡Ôñ£¬ÈçUnity¡¢Unreal EngineºÍSDLµÈ¡£ÕâÀïÒÔUnityΪÀý£¬ÏÈÈÝÔÚLinuxÉϾÙÐÐUnityÓÎÏ·¿ª·¢µÄÉèÖÃÒªÁì¡£
Ê×ÏÈ£¬ÄúÐèÒªÔÚUnity¹Ù·½ÍøÕ¾ÉÏÏÂÔز¢×°ÖÃÊÊÓÃÓÚLinuxµÄUnity±à¼Æ÷¡£×°ÖÃÍê³Éºó£¬Äú¿ÉÒÔͨ¹ýVS Code·¿ªÏîÄ¿Îļþ£¬²¢±àдÓÎÏ·Âß¼´úÂë¡£ÏÂÃæÊÇÒ»¸ö¼òÆÓµÄUnity´úÂëʾÀý£º
using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 10f; void Update() { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical = Input.GetAxis("Vertical"); Vector3 movement = new Vector3(moveHorizontal, 0f, moveVertical); transform.Translate(movement * speed * Time.deltaTime); } }
µÇ¼ºó¸´ÖÆ
ÒÔÉÏ´úÂëƬ¶Ï½ç˵ÁËÒ»¸ö¼òÆÓµÄÍæ¼Ò¿ØÖÆÆ÷£¬Í¨¹ýÓû§ÊäÈë¿ØÖÆÍæ¼ÒÔÚƽÃæÉÏÒƶ¯¡£Äú¿ÉÒÔÔÚVS CodeÖбàд²¢µ÷ÊÔ´ËÀà´úÂ룬ȻºóÔÚUnity±à¼Æ÷ÖÐÉó²éЧ¹û¡£ÐèҪעÖصÄÊÇ£¬ÄúÐèÔÚUnity±à¼Æ÷ÖÐǨáã´úÂë²¢¾ÙÐÐͼÐλ¯²Ù×÷£¬VS CodeÖ÷ÒªÓÃÓÚ±àд´úÂëºÍµ÷ÊÔ¡£
±ðµÄ£¬ÉÐÓÐһЩÆäËûµÄÉèÖúͼ¼ÇÉ¿ÉÒÔ×ÊÖúÄúÔÚLinuxÉϸüºÃµØʹÓÃVisual Studio¾ÙÐÐÓÎÏ·¿ª·¢¡£ÀýÈ磬Äú¿ÉÒÔÉèÖð汾¿ØÖƹ¤¾ß£¨ÈçGit£©ÒÔ±ãÓÚ¶àÈËÐ×÷¿ª·¢£¬»¹¿ÉÒÔ×°ÖÃǶÈëʽÖն˲å¼þÔÚVS CodeÖÐÖ´ÐÐLinuxÏÂÁÀû±ã²Ù×÷ϵͳ¼¶µÄ¹¦Ð§ºÍµ÷ÊÔ¡£
×ܽáÆðÀ´£¬LinuxÉÏʹÓÃVisual Studio¾ÙÐÐÓÎÏ·¿ª·¢¿ÉÒÔÌṩÎȹ̵Ŀª·¢ÇéÐκÍÇ¿Ê¢µÄ¿ªÔ´×ÊÔ´Ö§³Ö¡£Í¨¹ýºÏÀíÉèÖÃÇéÐΡ¢Ñ¡ÔñÊʵ±µÄ¿ª·¢¹¤¾ßºÍ¿â£¬²¢ÉÆÓÃVS CodeµÄÌØÕ÷ºÍ²å¼þ£¬ÄúÄܹ»ÔÚLinuxƽ̨ÉϸßЧµØ¾ÙÐÐÓÎÏ·¿ª·¢¡£Ï£Íû±¾ÎĵÄÏÈÈݶÔÄúÓÐËù×ÊÖú£¬Äܹ»ÎªÄúµÄ¿ª·¢Ö®Â·´øÀ´Ò»Ð©Æô·¢¡£×£ÄúÓÎÏ·¿ª·¢Ë³Ë죡
ÒÔÉϾÍÊÇÔÚLinuxÉÏʹÓÃVisual Studio¾ÙÐÐÓÎÏ·¿ª·¢µÄÍƼöÉèÖõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡