{"id":1090,"date":"2024-01-30T18:51:36","date_gmt":"2024-01-30T15:21:36","guid":{"rendered":"https:\/\/mabioca.com\/pa\/?p=1090"},"modified":"2024-11-26T13:51:10","modified_gmt":"2024-11-26T10:21:10","slug":"change-the-color-of-the-material","status":"publish","type":"post","link":"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/change-the-color-of-the-material\/","title":{"rendered":"\u06f1- \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af \u06cc\u06a9 \u0645\u0648\u0636\u0648\u0639"},"content":{"rendered":"\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-2d5cfeb\" data-block-id=\"2d5cfeb\"><p class=\"stk-block-text__text\">\u0628\u0639\u062f \u0627\u0632 \u0645\u062f\u062a\u0647\u0627 \u0641\u0631\u0635\u062a\u06cc \u067e\u06cc\u062f\u0627 \u0634\u062f \u062a\u0627 \u0628\u062a\u0648\u0646\u0645 \u0646\u0648\u0634\u062a\u0647\u200c\u0627\u06cc \u0628\u0647 \u0648\u0628\u0633\u0627\u06cc\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u0645 \u06a9\u0647 \u0647\u0645 \u0645\u0641\u06cc\u062f \u0648 \u0647\u0645 \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0645\u0648\u0636\u0648\u0639 \u0648\u0627\u0642\u0639\u06cc\u062a \u0645\u062c\u0627\u0632\u06cc \u0628\u0627\u0634\u0647. \u0628\u0647 \u0641\u06a9\u0631\u0645 \u0631\u0633\u06cc\u062f \u06a9\u0647 \u067e\u0631\u062f\u0627\u062e\u062a\u0646 \u0628\u0647 \u0645\u0648\u0636\u0648\u0639 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0633\u06cc \u0634\u0627\u0631\u067e \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u0628\u0627\u0632\u06cc \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0634\u0627\u06cc\u062f \u0627\u06cc\u062f\u0647\u200c\u06cc \u062e\u0648\u0628\u06cc \u0628\u0627\u0634\u0647. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0647 \u0648 \u0646\u0648\u0634\u062a\u0647\u200c\u0647\u0627\u06cc \u0628\u0639\u062f\u06cc \u0633\u0639\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc \u0633\u0627\u062f\u0647\u200c \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u067e\u0631\u062f\u0627\u0632\u0645.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-b654c75\" data-block-id=\"b654c75\"><p class=\"stk-block-text__text\">\u0627\u06af\u0647 \u0628\u062e\u0648\u0627\u0645 \u0628\u0627 \u06cc\u06a9 \u0645\u0642\u062f\u0645\u0647\u200c\u06cc \u06a9\u0648\u062a\u0627\u0647 \u0634\u0631\u0648\u0639 \u06a9\u0646\u0645 \u0628\u0627\u06cc\u062f \u0628\u06af\u0645 \u06a9\u0647 \u062a\u0648\u0633\u0639\u0647 \u0633\u06cc \u0634\u0627\u0631\u067e \u062a\u0648\u0633\u0637 \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a \u0627\u0632 \u0633\u0627\u0644 \u06f2\u06f0\u06f0\u06f2 \u0634\u0631\u0648\u0639 \u0634\u062f \u0648 \u062a\u0627 \u0627\u0644\u0627\u0646 \u0627\u062f\u0627\u0645\u0647 \u062f\u0627\u0631\u0647. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0648\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0632\u0628\u0627\u0646 \u0627\u0635\u0644\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u0628\u0627\u0632\u06cc \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0647\u0645 \u0627\u0632 \u0633\u0627\u0644 \u06f2\u06f0\u06f0\u06f5 \u0634\u0631\u0648\u0639 \u0645\u06cc\u0634\u0647 \u0648 \u062a\u0627 \u0627\u0644\u0627\u0646 \u0628\u0639\u062f \u0627\u0632 \u062d\u062f\u0648\u062f \u06f2\u06f0 \u0633\u0627\u0644 \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc \u0628\u0632\u0631\u06af \u0632\u06cc\u0627\u062f\u06cc \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u0648\u0646 \u0627\u062c\u0631\u0627 \u0634\u062f\u0646 \u0648 \u0627\u0632 \u0622\u0646 \u062c\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0628\u062e\u0634 \u0632\u06cc\u0627\u062f\u06cc \u0627\u0632 \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc \u0648\u0627\u0642\u0639\u06cc\u062a \u0645\u062c\u0627\u0632\u06cc \u0648 \u0627\u0641\u0632\u0648\u062f\u0647 \u0628\u0627 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u0634\u0646 \u0627\u0647\u0645\u06cc\u062a \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0627\u0648\u0646 \u0631\u0648 \u0628\u0631\u0627\u06cc \u0627\u0641\u0631\u0627\u062f \u0641\u0639\u0627\u0644 \u062f\u0631 \u0627\u06cc\u0646 \u062d\u0648\u0632\u0647 \u0628\u0633\u06cc\u0627\u0631 \u067e\u0631 \u0631\u0646\u06af \u0645\u06cc\u200c\u06a9\u0646\u0647. \u06cc\u06a9 \u062f\u0644\u06cc\u0644 \u062f\u06cc\u06af\u0647 \u0647\u0645 \u0634\u0627\u06cc\u062f \u0627\u06cc\u0646 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u062a\u0648\u0633\u0639\u0647 \u0645\u062d\u062a\u0648\u0627 \u0628\u0631\u0627\u06cc \u0648\u06cc\u200c\u0622\u0631 \u0648 \u0627\u06cc\u200c\u0622\u0631 \u0647\u0646\u0648\u0632 \u062f\u0631 \u0627\u0628\u062a\u062f\u0627\u06cc \u0631\u0627\u0647 \u062e\u0648\u062f\u0634 \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u0647 \u0648 \u0627\u0645\u06a9\u0627\u0646\u0627\u062a \u0632\u06cc\u0627\u062f\u06cc \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u06a9\u062f \u0646\u0648\u06cc\u0633\u06cc \u0647\u0646\u0648\u0632 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0646\u06cc\u0633\u062a. \u0647\u0631 \u0686\u0646\u062f \u062e\u06cc\u0644\u06cc \u0632\u0648\u062f \u0627\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u200c\u06a9\u0646\u0647 \u0648\u0644\u06cc \u0628\u0627\u0632 \u0647\u0645 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0645\u062b\u0644 \u06cc\u0647 \u0634\u0628\u062d \u062f\u0646\u0628\u0627\u0644 \u0634\u0645\u0627 \u0645\u06cc\u0627\u062f\u060c \u062d\u0627\u0644\u0627 \u0628\u0627 \u0627\u06cc\u0646 \u0634\u0631\u0627\u06cc\u0637 \u0628\u0647\u062a\u0631\u0647 \u06cc\u0647 \u0646\u06af\u0627\u0647\u06cc \u0628\u0647\u0634 \u0628\u0646\u062f\u0627\u0632\u06cc\u0645. \u0634\u0627\u06cc\u062f \u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u06a9\u0645\u06cc \u0628\u0647 \u0646\u0638\u0631 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0628\u06cc\u0627\u062f \u0648\u0644\u06cc \u0628\u0647 \u0645\u0631\u0648\u0631 \u0632\u0645\u0627\u0646 \u0628\u0627 \u062a\u0645\u0631\u06cc\u0646 \u0648 \u0627\u062c\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc \u06a9\u0648\u0686\u06a9 \u0645\u062a\u0648\u062c\u0647 \u0645\u06cc\u0634\u06cc\u062f \u06a9\u0647 \u0645\u06cc\u0634\u0647 \u0628\u0627\u0647\u0627\u0634 \u06a9\u0646\u0627\u0631 \u0627\u0648\u0645\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-7d6d97f\" data-block-id=\"7d6d97f\"><p class=\"stk-block-text__text\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0627\u0632 \u0639\u0646\u0648\u0627\u0646\u0634 \u0647\u0645 \u062a\u0627 \u062d\u062f\u06cc \u0645\u0634\u062e\u0635\u0647 \u0642\u0631\u0627\u0631\u0647 \u0628\u0627 \u0686\u0646\u062f \u062e\u0637 \u06a9\u062f \u0633\u0627\u062f\u0647 \u06a9\u0627\u0631\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0631\u0646\u06af \u06cc\u0647 \u0644\u06cc\u0648\u0627\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0646\u0647 \u0645\u062b\u0644\u0627 \u0642\u0631\u0645\u0632 \u0628\u0634\u0647. \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0646 \u06a9\u0627\u0631 \u0645\u0646 \u06cc\u0647 \u067e\u0631\u0648\u0698\u0647\u200c\u0627\u06cc \u0631\u0648 \u0622\u0645\u0627\u062f\u0647 \u06a9\u0631\u062f\u0645 \u06a9\u0647 \u0627\u0632 \u0637\u0631\u06cc\u0642 <a href=\"https:\/\/github.com\/mabioca\/Scripts\/tree\/main\" data-type=\"link\" data-id=\"https:\/\/github.com\/mabioca\/Scripts\/tree\/main\" target=\"_blank\" rel=\"noreferrer noopener\">\u0627\u06cc\u0646 \u0644\u06cc\u0646\u06a9<\/a> \u0645\u06cc\u200c\u062a\u0648\u0646\u06cc\u062f \u0627\u0632 \u06af\u06cc\u062a \u0647\u0627\u0628 \u062f\u0627\u0646\u0644\u0648\u062f\u0634 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0647\u0645\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647\u200c\u0627\u06cc\u0647 \u06a9\u0647 \u0627\u06cc\u0646\u062c\u0627 \u0645\u06cc\u200c\u0628\u06cc\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0631\u0648 \u0647\u0645 \u0628\u0647 \u0645\u0631\u0648\u0631 \u06a9\u0647 \u0645\u0637\u0627\u0644\u0628 \u0628\u06cc\u0634\u062a\u0631\u06cc \u0645\u06cc\u0632\u0627\u0631\u0645 \u0622\u067e\u062f\u06cc\u062a \u0645\u06cc\u200c\u06a9\u0646\u0645 \u067e\u0633 \u0628\u0647\u062a\u0631\u0647 \u06a9\u0647 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 <a href=\"https:\/\/desktop.github.com\" data-type=\"link\" data-id=\"https:\/\/desktop.github.com\" target=\"_blank\" rel=\"noreferrer noopener\">\u06af\u06cc\u062a \u0647\u0627\u0628 \u062f\u0633\u06a9\u062a\u0627\u067e<\/a> \u0631\u0648 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u062a\u0648\u0646 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u062a\u0627 \u0631\u0627\u062d\u062a \u0628\u062a\u0648\u0646\u06cc\u062f \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0631\u0648 \u0628\u06af\u06cc\u0631\u06cc\u062f. \u0628\u062f\u0648\u0646 \u062f\u0627\u0646\u0644\u0648\u062f \u067e\u0631\u0648\u0698\u0647 \u0647\u0645 \u0645\u06cc\u200c\u062a\u0648\u0646\u06cc\u062f \u0627\u062f\u0627\u0645\u0647 \u0628\u062f\u06cc\u062f \u0648 \u0628\u062c\u0627\u06cc \u0644\u06cc\u0648\u0627\u0646 \u0645\u062b\u0644\u0627 \u06cc\u0647 \u0645\u06a9\u0639\u0628 \u0628\u0633\u0627\u0632\u06cc\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-2b7e9fa\" data-block-id=\"2b7e9fa\"><p class=\"stk-block-text__text\">\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0634\u0627\u06cc\u062f \u062e\u0648\u0628 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u06a9\u0627\u0631\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0642\u0631\u0627\u0631\u0647 \u0634\u0645\u0627 \u0627\u0646\u062c\u0627\u0645 \u0628\u062f\u06cc\u062f \u0631\u0648 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628 \u0628\u0646\u0648\u06cc\u0633\u0645:<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-5729018\" data-block-id=\"5729018\"><p class=\"stk-block-text__text\">\u06f1- \u06cc\u06a9 \u0645\u06a9\u0639\u0628 \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u0627\u0633\u0645\u0634 \u0631\u0648 \u0647\u0631 \u0686\u06cc \u062f\u0648\u0633\u062a \u062f\u0627\u0634\u062a\u06cc\u062f \u0628\u0632\u0627\u0631\u06cc\u062f \u0628\u0631\u0627\u06cc \u0645\u0646 \u06a9\u0647 \u06cc\u0647 \u0644\u06cc\u0648\u0627\u0646\u0647 \u06af\u0630\u0627\u0634\u062a\u0645 Mug<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-9cfcdf6\" data-block-id=\"9cfcdf6\"><p class=\"stk-block-text__text\">\u06f2- \u06cc\u0647 GameObject \u0633\u0627\u062f\u0647 \u0647\u0645 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u06af\u0632\u06cc\u0646\u0647 Create Empty \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0647\u0631 \u062f\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0631\u0627\u062d\u0644 \u062f\u0631 \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0647\u0645 \u0645\u0634\u062e\u0635 \u0634\u062f\u0647<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-33a9e45\" data-block-id=\"33a9e45\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1124\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2.jpg\" width=\"1049\" height=\"744\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2.jpg 1049w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2-300x213.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2-1024x726.jpg 1024w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2-768x545.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2-500x355.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-2-800x567.jpg 800w\" sizes=\"auto, (max-width: 1049px) 100vw, 1049px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-973f0ab\" data-block-id=\"973f0ab\"><p class=\"stk-block-text__text\">\u06f3- \u062f\u0631 \u0642\u0633\u0645\u062a Assets \u06cc\u0647 \u0633\u06a9\u0631\u06cc\u067e\u062a \u0633\u06cc \u0634\u0627\u0631\u067e \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06cc\u0647 \u0627\u0633\u0645 \u0642\u0627\u0628\u0644 \u062a\u0634\u062e\u06cc\u0635 \u0628\u0631\u0627\u0634 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0645\u0646 setColorForTestObject \u0631\u0648 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0631\u062f\u0645 \u0627\u06cc\u0646 \u0647\u0645 \u062f\u0631 \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0645\u0634\u062e\u0635\u0647. \u0634\u0627\u06cc\u062f \u06af\u0641\u062a\u0646 \u0627\u06cc\u0646 \u0645\u0631\u0627\u062d\u0644 \u0628\u0647 \u0627\u06cc\u0646 \u0634\u06a9\u0644 \u0628\u0631\u0627\u06cc \u06a9\u0633\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0627 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u062c\u0627\u0644\u0628 \u0646\u0628\u0627\u0634\u0647 \u0648\u0644\u06cc \u062e\u0628 \u0686\u0648\u0646 \u0645\u0637\u0644\u0628 \u0627\u0648\u0644\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0645 \u062c\u0648\u0631\u06cc \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0647\u0645\u0647 \u0628\u062a\u0648\u0646\u0646 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u0646 \u0648\u0644\u06cc \u0627\u06af\u0647 \u0633\u0648\u0627\u0644\u06cc \u0628\u0648\u062f \u062f\u0631 \u0642\u0633\u0645\u062a \u0632\u06cc\u0631 \u0628\u067e\u0631\u0633\u06cc\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-c350edb\" data-block-id=\"c350edb\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1125\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3.jpg\" width=\"1049\" height=\"744\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3.jpg 1049w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3-300x213.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3-1024x726.jpg 1024w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3-768x545.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3-500x355.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-3-800x567.jpg 800w\" sizes=\"auto, (max-width: 1049px) 100vw, 1049px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-aaacd4e\" data-block-id=\"aaacd4e\"><p class=\"stk-block-text__text\">\u06f4- \u062d\u0627\u0644\u0627 \u0628\u0627 \u062f\u0627\u0628\u0644 \u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0646 \u0631\u0648\u06cc \u0627\u0648\u0646 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0648\u06cc\u0698\u0648\u0627\u0644 \u0627\u0633\u062a\u0648\u062f\u06cc\u0648 \u06a9\u0650\u0645\u06cc\u0648\u0646\u06cc\u062a\u06cc \u0628\u0627\u0632 \u0645\u06cc\u0634\u0647 \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u062f\u0627\u062e\u0644\u0634 \u062f\u06cc\u062f\u0647 \u0645\u06cc\u0634\u0646. \u0627\u0633\u0645\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0641\u0627\u06cc\u0644 \u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0631 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0647 \u0628\u0648\u062f\u06cc\u0645 \u062f\u0631 \u062e\u0637 \u067e\u0646\u062c\u0645 \u0628\u0639\u062f \u0627\u0632 public class \u0628\u0627\u06cc\u062f \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0628\u0627\u0634\u0647 \u0648 \u062f\u0631 \u0627\u0635\u0644 \u062a\u0646\u0647\u0627 \u0686\u06cc\u0632\u06cc\u0647 \u06a9\u0647 \u0645\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f\u06cc\u0645 \u0628\u0642\u06cc\u0647 \u0627\u0648\u0646 \u06a9\u0644\u0645\u0627\u062a \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0646.<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class setColorForTestObject : MonoBehaviour\n{\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        \n    }\n\n    \/\/ Update is called once per frame\n    void Update()\n    {\n        \n    }\n}\n\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Generic<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">UnityEngine<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">class<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">setColorForTestObject<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #267F99\">MonoBehaviour<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Start is called before the first frame update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Start<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Update is called once per frame<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Update<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-81ee816\" data-block-id=\"81ee816\"><p class=\"stk-block-text__text\">\u06cc\u0647 \u062a\u0648\u0636\u06cc\u062d \u06a9\u0648\u062a\u0627\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u0633\u0647 \u062e\u0637 \u0627\u0648\u0644 \u06a9\u0647 \u0628\u0627 using \u0634\u0631\u0648\u0639 \u0645\u06cc\u0634\u0646 \u0645\u0647\u0645\u0646 \u0648\u0644\u06cc \u062f\u0631 \u0646\u0648\u0634\u062a\u0647\u200c\u0647\u0627\u06cc \u0628\u0639\u062f\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f\u0634\u0648\u0646 \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc\u062f\u0645. \u0627\u0645\u0627 \u062f\u0631 \u062e\u0637 \u067e\u0646\u062c\u0645 \u06a9\u0647 \u0628\u0627 public class \u0634\u0631\u0648\u0639 \u0645\u06cc\u0634\u0647 \u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u0627 \u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u0647. \u06a9\u0644\u0627\u0633 \u0686\u06cc\u0647 \u062d\u0627\u0644\u0627\u061f \u0627\u0633\u0645\u0634 \u06a9\u0647 \u0628\u0647 \u0646\u0638\u0631 \u0645\u0647\u0645 \u0645\u06cc\u0627\u062f \u067e\u0633 \u062d\u062a\u0645\u0627 \u0647\u0645 \u0645\u0647\u0645\u0647. \u0628\u0632\u0627\u0631\u06cc\u062f \u06cc\u0647 \u0645\u062b\u0627\u0644 \u0628\u0632\u0646\u0645\u060c \u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f \u0634\u0645\u0627 \u06cc\u0647 \u0642\u0637\u0639\u0647 \u0632\u0645\u06cc\u0646 \u062f\u0627\u0631\u06cc\u062f \u0648 \u062d\u0627\u0644\u0627 \u062a\u0635\u0645\u06cc\u0645 \u06af\u0631\u0641\u062a\u06cc\u062f \u062f\u0627\u062e\u0644 \u0627\u0648\u0646 \u06cc\u06a9 \u062e\u0648\u0646\u0647 \u0628\u0633\u0627\u0632\u06cc\u062f \u067e\u0633 \u0645\u06cc\u0631\u06cc\u062f \u067e\u06cc\u0634 \u062f\u0648\u0633\u062a \u0645\u0647\u0646\u062f\u0633 \u062a\u0648\u0646 \u0648 \u0628\u0647\u0634 \u0645\u06cc\u06af\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u062a\u0648\u0646 \u06cc\u0647 \u0646\u0642\u0634\u0647 \u0628\u06a9\u0634\u0647 \u0648 \u0627\u0648\u0646 \u0647\u0645 \u0647\u0645\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0648 \u0645\u06cc\u200c\u06a9\u0646\u0647 \u0648 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0646\u0642\u0634\u0647\u200c\u06cc \u0634\u0645\u0627 \u0631\u0648 \u0631\u0627\u062d\u062a \u0627\u0632 \u0628\u06cc\u0646 \u0646\u0642\u0634\u0647\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0647 \u062a\u0634\u062e\u06cc\u0635 \u0628\u062f\u0647 \u0627\u0633\u0645 \u0634\u0645\u0627 \u0631\u0648 \u0647\u0645 \u0631\u0648\u0634 \u0645\u06cc\u0632\u0627\u0631\u0647. \u062d\u0627\u0644\u0627 \u0634\u0645\u0627 \u0648\u0642\u062a\u06cc \u0646\u0642\u0634\u0647 \u0631\u0648 \u0646\u06af\u0627\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u0645\u06cc\u200c\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u062f\u0627\u062e\u0644\u0634 \u0686\u0646\u062f \u062a\u0627 \u0627\u062a\u0627\u0642\u060c \u0622\u0634\u067e\u0632\u062e\u0648\u0646\u0647 \u0648 \u063a\u06cc\u0631\u0647 \u0647\u0633\u062a \u0648 \u0627\u0632 \u06a9\u0644 \u0632\u0645\u06cc\u0646 \u0686\u0642\u062f\u0631\u0634 \u0628\u0646\u0627 \u0634\u062f\u0647 \u0648 \u0686\u0642\u062f\u0631\u0634 \u062d\u06cc\u0627\u0637. \u0627\u0648\u0644\u0634 \u0628\u0646\u0638\u0631\u062a\u0648\u0646 \u062e\u0648\u0628 \u0645\u06cc\u0627\u062f \u0648\u0644\u06cc \u0628\u0639\u062f\u0634 \u062a\u0635\u0645\u06cc\u0645 \u0645\u06cc\u200c\u06af\u06cc\u0631\u06cc\u062f \u06cc\u0647 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u06cc \u062a\u0648\u0634 \u0628\u062f\u06cc\u062f \u0645\u062b\u0644\u0627 \u062a\u0639\u062f\u0627\u062f \u0627\u062a\u0627\u0642\u200c\u0647\u0627 \u0631\u0648 \u06a9\u0645 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0647 \u0641\u0636\u0627\u06cc \u0647\u0627\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0645\u0647\u0646\u062f\u0633 \u0647\u0645 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0647 \u0686\u0648\u0646 \u0645\u0647\u0646\u062f\u0633 \u062e\u0648\u0628 \u0642\u0635\u0647\u200c\u06cc \u0645\u0627\u0633\u062a. \u062f\u0631 \u0645\u062b\u0627\u0644 \u0645\u0627 \u0646\u0642\u0634\u0647 \u0647\u0645\u0648\u0646 \u06a9\u0644\u0627\u0633\u0647 \u06a9\u0647 \u062f\u0627\u062e\u0644\u0634 \u0646\u062d\u0648\u0647\u200c\u06cc \u0627\u062c\u0631\u0627\u06cc \u0686\u06cc\u0632\u0647\u0627\u06cc\u06cc \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0648 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0627\u0632 \u0628\u0642\u06cc\u0647 \u06a9\u0644\u0627\u0633\u0647\u0627 \u0642\u0627\u0628\u0644 \u062a\u0634\u062e\u06cc\u0635 \u0628\u0627\u0634\u0647 \u06cc\u0647 \u0627\u0633\u0645 \u062f\u0627\u0631\u0647 \u0648 \u0645\u062b\u0644 \u06cc\u0647 \u0646\u0642\u0634\u0647 \u0647\u0631 \u062a\u063a\u06cc\u06cc\u0631\u06cc \u0647\u0645 \u06a9\u0647 \u062e\u0648\u0627\u0633\u062a\u06cc\u0645 \u0645\u06cc\u200c\u062a\u0648\u0646\u06cc\u0645 \u062f\u0627\u062e\u0644\u0634 \u0628\u062f\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0645\u062d\u062f\u0648\u062f\u0647\u200c\u0627\u0634 \u0647\u0645 \u0645\u0634\u062e\u0635 \u0628\u0627\u0634\u0647 \u0645\u062b\u0644 \u06cc\u0647 \u0642\u0637\u0639\u0647 \u0632\u0645\u06cc\u0646 \u0627\u0648\u0644 \u0648 \u0622\u062e\u0631\u0634 \u06cc\u0647 \u0639\u0644\u0627\u0645\u062a \u0628\u0631\u0627\u06a9\u062a \u062f\u0627\u0631\u0647 \u0645\u062b\u0644 \u0645\u062b\u0627\u0644 \u067e\u0627\u06cc\u06cc\u0646.<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class setColorForTestObject : MonoBehaviour\n{\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        \n    }\n\n    \/\/ Update is called once per frame\n    void Update()\n    {\n        \n    }\n}\n\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Generic<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">UnityEngine<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">class<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">setColorForTestObject<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #267F99\">MonoBehaviour<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #000000\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Start is called before the first frame update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Start<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Update is called once per frame<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Update<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #000000\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-8de3cab\" data-block-id=\"8de3cab\"><p class=\"stk-block-text__text\">\u06a9\u0644\u0645\u0647 public \u0647\u0645 \u0646\u0648\u0639 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u06a9\u0644\u0627\u0633 \u0631\u0648 \u0645\u0634\u062e\u0635 \u0645\u06cc\u06a9\u0646\u0647 \u06cc\u0639\u0646\u06cc \u06a9\u0627\u0631\u0634 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0633\u0627\u06cc\u0631 \u06a9\u062f\u0647\u0627 \u0648 \u062e\u0648\u062f \u0645\u062d\u06cc\u0637 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0631\u0648 \u0628\u0647 \u06a9\u0644\u0627\u0633 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc\u200c\u06a9\u0646\u0647. \u062d\u0627\u0644\u0627 \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u06a9\u0644\u0627\u0633 \u0627\u0632 \u0646\u0648\u0639 public \u0640\u0647 \u06cc\u0639\u0646\u06cc \u0647\u0645\u0647 \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u0631\u0646 \u0628\u0647 \u0627\u06cc\u0646 \u06a9\u0644\u0627\u0633 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646. \u0628\u0647 \u0627\u06cc\u0646\u0647\u0627 \u06a9\u0647 \u0634\u0634 \u0646\u0648\u0639 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u062a\u0641\u0627\u0648\u062a \u0631\u0648 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u0646 \u0627\u0635\u0637\u0644\u0627\u062d\u0627 Access Modifiers \u0645\u06cc\u06af\u0646 \u06a9\u0647 \u062f\u0631 \u0646\u0648\u0634\u062a\u0647 \u062f\u06cc\u06af\u0647\u200c\u0627\u06cc \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc\u200c\u062f\u0645.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-7ef316f\" data-block-id=\"7ef316f\"><p class=\"stk-block-text__text\">\u0628\u0647 \u0627\u0646\u062a\u0647\u0627\u06cc \u062e\u0637 \u067e\u0646\u062c\u0645 \u06cc\u0639\u0646\u06cc MonoBehaviour \u0647\u0645 \u0628\u0627\u06cc\u062f \u06cc\u0647 \u0627\u0634\u0627\u0631\u0647\u200c\u0627\u06cc \u06a9\u0646\u0645. \u062f\u0631 \u0648\u0627\u0642\u0639 \u0627\u06cc\u0646 \u062e\u0648\u062f\u0634 \u0647\u0645 \u06cc\u0647 \u06a9\u0644\u0627\u0633\u0647 \u06a9\u0647 \u06cc\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u062e\u06cc\u0644\u06cc \u0645\u0647\u0645 \u062f\u0627\u0631\u0647. \u0627\u06af\u0647 \u0628\u0631\u06af\u0631\u062f\u06cc\u0645 \u0628\u0647 \u0645\u062b\u0627\u0644 \u0628\u0627\u0644\u0627 \u0648 \u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f \u0645\u0647\u0646\u062f\u0633 \u0645\u0627 \u0686\u0646\u062f \u062a\u0627 \u0645\u0647\u0631 \u0648\u06cc\u0698\u0647 \u062f\u0627\u0631\u0647 \u06a9\u0647 \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0646\u0648\u0639 \u0648 \u06a9\u0627\u0631\u0628\u0631\u062f \u0646\u0642\u0634\u0647\u200c\u06cc \u0646\u0647\u0627\u06cc\u06cc \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0631\u0647\u0627 \u0631\u0648 \u0631\u0648\u06cc \u0627\u0648\u0646\u0647\u0627 \u0645\u06cc\u200c\u0632\u0646\u0647 \u0645\u062b\u0644\u0627 \u06cc\u0647 \u0646\u0642\u0634\u0647\u200c\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f \u062a\u062c\u0627\u0631\u06cc \u062f\u0627\u0631\u0647 \u0648 \u06cc\u06a9\u06cc \u062f\u06cc\u06af\u0647 \u0645\u0633\u06a9\u0648\u0646\u06cc \u0648 \u0628\u0639\u0636\u06cc\u200c\u0647\u0627 \u0647\u0645 \u0647\u0631 \u062f\u0648. \u0627\u06cc\u0646\u062c\u0627 \u0647\u0645 MonoBehaviour \u0645\u06cc\u06af\u0647 \u06a9\u0647 \u06a9\u0644\u0627\u0633 \u0645\u0627 \u0628\u0647 \u0627\u0633\u0645 setColorForTestObject \u06cc\u0647 \u06a9\u0650\u0645\u067e\u0648\u0646\u0646\u062a\u200c\u0647. \u0627\u06cc\u0646 \u06a9\u0650\u0645\u067e\u0648\u0646\u0646\u062a \u0628\u0648\u062f\u0646 \u06cc\u0647 \u0645\u0639\u0646\u06cc \u0633\u0627\u062f\u0647\u200c\u0634 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0645\u06cc\u0632\u0627\u0631\u0647 \u06a9\u0644\u0627\u0633 \u0645\u0627 \u062f\u0631 \u0645\u062d\u06cc\u0637 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0628\u0647 \u0633\u0627\u06cc\u0631 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u0628\u0686\u0633\u0628\u0647 \u0645\u062b\u0644\u0627 \u0627\u06af\u0647 \u0641\u0627\u06cc\u0644 \u0633\u06a9\u0631\u06cc\u067e\u062a \u062e\u0648\u062f\u0645\u0648\u0646 \u0631\u0648 \u062f\u0631 \u0645\u062d\u06cc\u0637 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0628\u06af\u06cc\u0631\u06cc\u0645\u060c \u0628\u06a9\u0634\u06cc\u0645 \u0648 \u0628\u0646\u062f\u0627\u0632\u06cc\u0645 \u0632\u06cc\u0631 \u06cc\u0647 \u0645\u06a9\u0639\u0628 \u062f\u0631 \u0642\u0633\u0645\u062a Inspector \u0628\u0647 \u0627\u0646\u062a\u0647\u0627\u06cc \u0627\u0648\u0646 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u0634\u0647 \u0648 \u062f\u0631 \u0636\u0645\u0646 \u0627\u06cc\u0646 \u06a9\u0647 \u0627\u0648\u0646 \u062f\u0648 \u062a\u0627 \u062e\u0637 \u06f8 \u0648 \u06f1\u06f4 \u06a9\u0647 \u06a9\u0644\u0645\u0647\u200c\u0647\u0627\u06cc void Start \u0648 void Update \u062f\u0627\u0631\u0646 \u0631\u0648 \u0647\u0645 \u0647\u0645\u06cc\u0646 \u06a9\u0644\u0627\u0633 MonoBehaviour \u0628\u0647 \u06a9\u0644\u0627\u0633 \u0645\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0647.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-7e7a4a6\" data-block-id=\"7e7a4a6\"><p class=\"stk-block-text__text\">\u062e\u0637 \u06f7 \u0647\u0645 \u062f\u0631 \u0627\u0635\u0644 \u06cc\u0647 \u062a\u0648\u0636\u06cc\u062d \u062f\u0631 \u0645\u0648\u0631\u062f \u0686\u06cc\u0632\u06cc\u0647 \u06a9\u0647 \u0628\u0639\u062f\u0634 \u0642\u0631\u0627\u0631\u0647 \u0628\u06cc\u0627\u062f \u0648 \u0628\u0647\u0634 \u0645\u06cc\u06af\u0646 \u06a9\u0627\u0645\u0650\u0646\u062a comment \u06a9\u0644\u0627 \u0647\u0631 \u062e\u0637\u06cc \u06a9\u0647 \u0628\u0627 \u062f\u0648 \u062a\u0627 \u0639\u0644\u0627\u0645\u062a \/\/ \u0634\u0631\u0648\u0639 \u0628\u0634\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0648\u0646 \u062e\u0637 \u0627\u062c\u0631\u0627 \u0646\u0645\u06cc\u200c\u06a9\u0646\u0647 \u0648 \u0627\u0632\u0634 \u0645\u06cc\u200c\u06af\u0630\u0631\u0647. \u0628\u0647 \u0627\u06cc\u0646 \u0639\u0644\u0627\u0645\u062a \/ \u0647\u0645 \u0645\u06cc\u06af\u0646 forward slash \u0648 \u062d\u062a\u0645\u0627 \u0647\u0645 \u0645\u0647\u0645\u0647 \u06a9\u0647 \u062f\u0648 \u062a\u0627 \u067e\u0634\u062a \u0633\u0631 \u0647\u0645 \u0628\u0627\u0634\u0647. \u0627\u06af\u0647 \u0647\u0645 \u06cc\u0647 \u062e\u0637 \u06a9\u062f \u0631\u0648 \u0646\u062e\u0648\u0627\u0633\u062a\u06cc\u062f \u0627\u062c\u0631\u0627 \u0628\u0634\u0647 \u0645\u06cc\u200c\u062a\u0648\u0646\u06cc\u062f \u062f\u0648 \u062a\u0627 \u0627\u0632 \u0627\u06cc\u0646\u0647\u0627 \u0631\u0648 \u0628\u0632\u0627\u0631\u06cc\u062f \u062c\u0644\u0648\u06cc \u062e\u0637.<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class setColorForTestObject : MonoBehaviour\n{\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        \n    }\n\n    \/\/ Update is called once per frame\n    void Update()\n    {\n        \n    }\n}\n\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Generic<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">UnityEngine<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">class<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">setColorForTestObject<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #267F99\">MonoBehaviour<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">{<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #008000\">    \/\/ Start is called before the first frame update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Start<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #008000\">    \/\/ Update is called once per frame<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Update<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-7e2f7c4\" data-block-id=\"7e2f7c4\"><p class=\"stk-block-text__text\">\u062e\u0637 \u0647\u0634\u062a\u0645 \u0628\u0627 \u06a9\u0644\u0645\u0647 void \u0634\u0631\u0648\u0639 \u0645\u06cc\u0634\u0647 \u06a9\u0647 \u06cc\u0647 \u0645\u0639\u0646\u06cc \u0633\u0627\u062f\u0634 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u0642\u0631\u0627\u0631\u0647 \u0627\u06cc\u0646\u062c\u0627 \u0627\u0646\u062c\u0627\u0645 \u0628\u0634\u0647 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u0634\u0647 \u0648\u0644\u06cc \u0645\u0642\u062f\u0627\u0631\u06cc \u0631\u0648 \u0642\u0631\u0627\u0631 \u0646\u06cc\u0633\u062a \u0628\u06af\u0631\u062f\u0648\u0646\u0647. \u0627\u06af\u0647 \u0642\u062f\u06cc\u0645\u200c\u0647\u0627 \u0631\u0648 \u06cc\u0627\u062f\u062a\u0648\u0646 \u0628\u0627\u0634\u0647 \u06cc\u0627 \u0634\u0646\u06cc\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f \u06cc\u06a9\u06cc \u0622\u0634\u06cc \u06cc\u0627 \u0686\u06cc\u0632\u06cc \u0645\u06cc\u200c\u067e\u062e\u062a \u0648 \u0628\u0627 \u06cc\u0647 \u06a9\u0627\u0633\u0647 \u0645\u06cc\u200c\u0641\u0631\u0633\u062a\u0627\u062f \u0628\u0631\u0627\u06cc \u0647\u0645\u0633\u0627\u06cc\u0647\u200c\u0634 \u06cc\u0627 \u0641\u0627\u0645\u06cc\u0644\u0634 \u0627\u0648\u0646 \u0647\u0645 \u06cc\u0627 \u0622\u0634 \u0631\u0648 \u0628\u0627 \u062c\u0627\u0634 \u0628\u0631 \u0645\u06cc\u200c\u062f\u0627\u0634\u062a \u06cc\u0627 \u06cc\u0647 \u0686\u06cc\u0632\u06cc \u0645\u06cc\u0632\u0627\u0634\u062a \u062f\u0627\u062e\u0644 \u06a9\u0627\u0633\u0647 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062a\u0634\u06a9\u0631 \u0648 \u067e\u0633 \u0645\u06cc\u200c\u0641\u0631\u0633\u062a\u0627\u062f. \u062d\u0627\u0644\u0627 void \u0647\u0645\u0648\u0646\u0647 \u06a9\u0647 \u0642\u0631\u0627\u0631 \u0646\u06cc\u0633\u062a \u0686\u06cc\u0632\u06cc \u0631\u0648 \u067e\u0633 \u0628\u0641\u0631\u0633\u062a\u0647.&nbsp;<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-81fd7fa\" data-block-id=\"81fd7fa\"><p class=\"stk-block-text__text\">\u062d\u0627\u0644\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u06a9\u0644\u0645\u0647 Start \u06a9\u0647 \u062f\u0648 \u062a\u0627 \u067e\u0631\u0627\u0646\u062a\u0632 \u0628\u0627\u0632 \u0648 \u0628\u0633\u062a\u0647 \u0628\u0639\u062f\u0634 \u062f\u0627\u0631\u0647 \u06a9\u0647 \u06af\u0641\u062a\u06cc\u0645 \u0627\u0632 \u06a9\u062c\u0627 \u0645\u06cc\u0627\u062f\u060c \u06a9\u0627\u0631\u0634 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u06cc\u0647 \u0633\u0631\u06cc \u0686\u06cc\u0632\u0647\u0627 \u0631\u0648 \u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u0628\u0627\u0632\u06cc \u062a\u0646\u0638\u06cc\u0645 \u06cc\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u0647. \u0627\u06cc\u0646\u062c\u0627 \u0647\u0645\u0648\u0646 \u062c\u0627\u06cc\u06cc\u0647 \u06a9\u0647 \u0645\u0627 \u0642\u0631\u0627\u0631\u0647 \u06a9\u062f \u062e\u0648\u062f\u0645\u0648\u0646 \u0631\u0648 \u0628\u0632\u0627\u0631\u06cc\u0645 \u0686\u0648\u0646 \u0642\u0631\u0627\u0631\u0647 \u0644\u06cc\u0648\u0627\u0646 \u0645\u0627 \u0648\u0642\u062a\u06cc \u0628\u0627\u0632\u06cc \u0627\u062c\u0631\u0627 \u0634\u062f \u0631\u0646\u06af\u0634 \u0645\u062b\u0644\u0627 \u0642\u0631\u0645\u0632 \u0628\u0627\u0634\u0647. \u062f\u0631 \u0645\u0648\u0631\u062f \u0622\u067e\u062f\u06cc\u062a \u0647\u0645 \u0628\u06af\u0645 \u0647\u0631 \u0686\u0646\u062f \u0628\u0627 Update \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u06a9\u0627\u0631\u06cc \u0646\u062f\u0627\u0631\u06cc\u0645 \u0648\u0644\u06cc \u06a9\u0627\u0631\u0634 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u06a9\u062f\u06cc \u06a9\u0647 \u062f\u0627\u062e\u0644\u0634 \u0642\u0631\u0627\u0631 \u0645\u06cc\u200c\u06af\u06cc\u0631\u0647 \u062f\u0631 \u0637\u0648\u0644 \u0627\u062c\u0631\u0627\u06cc \u0628\u0627\u0632\u06cc \u0645\u062f\u0627\u0645 \u0627\u062c\u0631\u0627 \u06a9\u0646\u0647 \u06a9\u0647 \u0628\u0639\u062f\u0646 \u062f\u0631 <a href=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/use-array-rotating-fans\/\" data-type=\"link\" data-id=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/use-array-rotating-fans\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u06cc\u0647 \u0645\u062b\u0627\u0644 \u062f\u06cc\u06af\u0647<\/a> \u0628\u0627 \u0647\u0645 \u0645\u06cc\u200c\u0628\u06cc\u0646\u06cc\u0645. \u0628\u0647 \u0627\u06cc\u0646 \u062f\u0648 \u062a\u0627 \u0647\u0645 \u0645\u06cc\u06af\u0646 Method \u06a9\u0647 <a href=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/unity-methods\/\" data-type=\"link\" data-id=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/unity-methods\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0627\u06cc\u0646\u062c\u0627<\/a> \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0645.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-9d3ccd6\" data-block-id=\"9d3ccd6\"><p class=\"stk-block-text__text\">\u0628\u0631\u06af\u0631\u062f\u06cc\u0645 \u0628\u0647 \u0634\u0645\u0627\u0631\u0647\u200c\u0647\u0627<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-0f4ff88\" data-block-id=\"0f4ff88\"><p class=\"stk-block-text__text\">\u06f5- \u06a9\u0644 \u062e\u0637\u200c\u0647\u0627\u06cc \u06f1\u06f3 \u062a\u0627 \u06f1\u06f7 \u0631\u0648 \u067e\u0627\u06a9 \u06a9\u0646\u06cc\u062f \u0686\u0648\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u06a9\u0627\u0631\u06cc \u0628\u0627 Update \u0646\u062f\u0627\u0631\u06cc\u0645<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-8c79bfa\" data-block-id=\"8c79bfa\"><p class=\"stk-block-text__text\">\u06f6- \u062c\u0644\u0648\u06cc \u0628\u0631\u0627\u06a9\u062a \u062e\u0637 \u06f6 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f \u0628\u0639\u062f \u06cc\u0647 \u0627\u06cc\u0646\u062a\u0631 \u0628\u0632\u0646\u06cc\u062f \u062a\u0627 \u0628\u06cc\u0627\u062f \u062e\u0637 \u06f7 \u0648 \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class setColorForTestObject : MonoBehaviour\n{\n    public GameObject myTestObject;\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        \n    }\n\n}\n\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Generic<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">UnityEngine<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">class<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">setColorForTestObject<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #267F99\">MonoBehaviour<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #000000\">{<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">GameObject<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Start is called before the first frame update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Start<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-e01c546\" data-block-id=\"e01c546\"><p class=\"stk-block-text__text\">\u0627\u06cc\u0646 \u062e\u0637 \u06cc\u0647 \u0645\u062a\u063a\u06cc\u0631 \u0628\u0647 \u0627\u0633\u0645 myTestObject \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u0647 \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc\u0634 \u0627\u0632 \u0646\u0648\u0639 public \u0640\u0647 \u06a9\u0647 \u0628\u0627\u0644\u0627 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0645. GameObject \u0647\u0645 \u06cc\u0647 \u06a9\u0644\u0627\u0633\u0647 \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u062f\u0647 \u0645\u062a\u063a\u06cc\u0631 \u0645\u0627 \u0628\u0647 \u0628\u0639\u0636\u06cc \u0686\u06cc\u0632\u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0647 \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0628\u0639\u062f\u0646 \u0628\u062a\u0648\u0646\u06cc\u0645 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u06cc\u0645.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-7d61cd2\" data-block-id=\"7d61cd2\"><p class=\"stk-block-text__text\">\u06f7- \u062a\u0627 \u0647\u0645\u06cc\u0646 \u062c\u0627 \u0631\u0648 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0631\u06af\u0631\u062f\u06cc\u062f \u0628\u0647 \u0645\u062d\u06cc\u0637 \u06cc\u0648\u0646\u06cc\u062a\u06cc<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-b2aadfb\" data-block-id=\"b2aadfb\"><p class=\"stk-block-text__text\">\u06f8- \u0627\u0648\u0644 GameObject \u06a9\u0647 \u0642\u0628\u0644\u0627 \u0633\u0627\u062e\u062a\u06cc\u062f \u0631\u0648 \u0627\u0632 \u067e\u0646\u062c\u0631\u0647 Hierarchy \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0639\u062f \u0641\u0627\u06cc\u0644 \u0633\u06a9\u0631\u06cc\u067e\u062a \u0631\u0648 \u0627\u0632 \u067e\u0646\u062c\u0631\u0647 Assets \u0628\u06af\u06cc\u0631\u06cc\u062f\u060c \u0628\u06a9\u0634\u06cc\u062f \u0648 \u0628\u0646\u062f\u0627\u0632\u06cc\u062f \u062f\u0631 \u067e\u0646\u062c\u0631\u0647 Inspector \u062d\u0627\u0644\u0627 \u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u0627 \u0645\u0627\u0646\u0646\u062f \u06cc\u0647 \u06a9\u0650\u0645\u067e\u0648\u0646\u0646\u062a \u0628\u0647 \u0632\u06cc\u0631 Transform \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u0634\u0647 \u0648 \u0645\u062a\u063a\u06cc\u06cc\u0631\u06cc \u06a9\u0647 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u0647 \u0628\u0648\u062f\u06cc\u0645 \u0686\u0648\u0646 \u0627\u0632 \u0646\u0648\u0639 public \u0628\u0648\u062f \u062d\u0627\u0644\u0627 \u0627\u06cc\u0646\u062c\u0627 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633\u0647 \u0648 \u0645\u06cc\u200c\u062a\u0648\u0646\u06cc\u0645 \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0631\u0648 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0647\u0634 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-e493f1e\" data-block-id=\"e493f1e\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1136\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4.jpg\" width=\"1050\" height=\"693\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4.jpg 1050w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4-300x198.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4-1024x676.jpg 1024w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4-768x507.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4-500x330.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-4-800x528.jpg 800w\" sizes=\"auto, (max-width: 1050px) 100vw, 1050px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-630a90d\" data-block-id=\"630a90d\"><p class=\"stk-block-text__text\">\u06f9- \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0631\u0648 \u0627\u0632 \u0642\u0633\u0645\u062a Hierarchy \u0628\u06af\u06cc\u0631\u06cc\u062f\u060c \u0628\u06a9\u0634\u06cc\u062f \u0648 \u0628\u0646\u062f\u0627\u0632\u06cc\u062f \u062f\u0631 \u0642\u0633\u0645\u062a My Test Object \u06a9\u0647 \u062e\u0627\u0644\u06cc\u0647 \u06cc\u0639\u0646\u06cc \u0647\u0645\u0648\u0646 \u062c\u0627\u06cc\u06cc\u0647 \u06a9\u0647 \u0646\u0648\u0634\u062a\u0647 None (Game Object). \u0627\u0632 \u0627\u06cc\u0646 \u062c\u0627 \u0628\u0647 \u0628\u0639\u062f \u0686\u0648\u0646 \u0627\u0633\u06a9\u0631\u067e\u06cc\u062a \u0628\u0647 \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0648\u0635\u0644 \u0634\u062f\u0647 \u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0646\u06cc\u0645 \u0631\u0648\u06cc \u0645\u062f\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u06cc \u0628\u062f\u06cc\u0645.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-bb5c226\" data-block-id=\"bb5c226\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1112\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1.jpg\" width=\"1174\" height=\"758\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1.jpg 1174w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1-300x194.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1-1024x661.jpg 1024w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1-768x496.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1-500x323.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-1-800x517.jpg 800w\" sizes=\"auto, (max-width: 1174px) 100vw, 1174px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-9b05347\" data-block-id=\"9b05347\"><p class=\"stk-block-text__text\">\u06f1\u06f0- \u0628\u0631\u06af\u0631\u062f\u06cc\u062f \u0628\u0647 \u0648\u06cc\u0698\u0648\u0627\u0644 \u0627\u0633\u062a\u0648\u062f\u06cc\u0648 \u0648 \u062f\u0648 \u062e\u0637 \u0632\u06cc\u0631 \u0631\u0648 \u0647\u0645 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u0628\u0647 \u0642\u0633\u0645\u062a start \u062f\u0642\u06cc\u0642\u0627 \u0645\u062b\u0644 \u0646\u0645\u0648\u0646\u0647 \u0632\u06cc\u0631:<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class SetColorForTestObject : MonoBehaviour\n{\n    public GameObject myTestObject;\n\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        var myPubRenderer = myTestObject.GetComponent&lt;Renderer&gt;();\n        myPubRenderer.material.SetColor(&quot;_Color&quot;, Color.red);\n    }\n}\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Generic<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">UnityEngine<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">class<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">SetColorForTestObject<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #267F99\">MonoBehaviour<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">GameObject<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Start is called before the first frame update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Start<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #000000\">        <\/span><span style=\"color: #0000FF\">var<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">myPubRenderer<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">GetComponent<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #267F99\">Renderer<\/span><span style=\"color: #000000\">&gt;();<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #000000\">        <\/span><span style=\"color: #001080\">myPubRenderer<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">material<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">SetColor<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;_Color&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">Color<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">red<\/span><span style=\"color: #000000\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-353eac7\" data-block-id=\"353eac7\"><p class=\"stk-block-text__text\">\u06f1\u06f1- \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0631\u0648 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0631\u06af\u0631\u062f\u06cc\u062f \u0645\u062d\u06cc\u0637 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0648 \u062f\u06a9\u0645\u0647 play \u0631\u0648 \u0628\u0632\u0646\u06cc\u062f \u0628\u0639\u062f \u0627\u0632 \u0627\u062c\u0631\u0627 \u0634\u062f\u0646\u060c \u0634\u0645\u0627 \u0644\u06cc\u0648\u0627\u0646 \u0631\u0648 \u0628\u0627\u06cc\u062f \u0642\u0631\u0645\u0632 \u0628\u0628\u06cc\u0646\u06cc\u062f \u0627\u06af\u0647 \u0646\u0647 \u0645\u0631\u0627\u062d\u0644 \u0631\u0648 \u06cc\u0647 \u0628\u0627\u0631 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u06a9\u062f\u0648\u0645 \u0642\u0633\u0645\u062a \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0646\u062f\u0627\u062f\u06cc\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-60c3ff3\" data-block-id=\"60c3ff3\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1137\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5.jpg\" width=\"1050\" height=\"693\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5.jpg 1050w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5-300x198.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5-1024x676.jpg 1024w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5-768x507.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5-500x330.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-5-800x528.jpg 800w\" sizes=\"auto, (max-width: 1050px) 100vw, 1050px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-c7e00ef\" data-block-id=\"c7e00ef\"><p class=\"stk-block-text__text\">\u06cc\u0647 \u062a\u0648\u0636\u06cc\u062d \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u06cc\u0646 \u062f\u0648 \u062e\u0637. \u062f\u0631 \u062e\u0637 \u0627\u0648\u0644 \u06a9\u0647 \u0627\u0628\u062a\u062f\u0627 \u0628\u0627 var \u0634\u0631\u0648\u0639 \u0645\u06cc\u0634\u0647 \u0648 \u0628\u0639\u062f\u0634 \u06cc\u0647 \u0627\u0633\u0645 \u062f\u0644\u062e\u0648\u0627\u0647 \u0645\u0627 \u062f\u0631 \u0627\u0635\u0644 \u062f\u0627\u0631\u06cc\u0645 \u06cc\u0647 \u0645\u062a\u063a\u06cc\u0631 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u062e\u0648\u0628\u06cc\u0634 \u0647\u0645 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0646\u06cc\u0627\u0632\u06cc \u0646\u06cc\u0633\u062a \u0628\u06af\u06cc\u0645 \u0646\u0648\u0639\u0634 \u0686\u06cc\u0647 \u0648 \u062e\u0648\u062f \u06a9\u0627\u0645\u067e\u0627\u06cc\u0644\u0631 \u0632\u062d\u0645\u062a\u0634 \u0631\u0648 \u0645\u06cc\u200c\u06a9\u0634\u0647. \u062d\u0627\u0644\u0627 \u0642\u0631\u0627\u0631\u0647 \u0686\u06cc\u0632\u06cc \u0628\u0647 \u0627\u06cc\u0646 \u0645\u062a\u063a\u06cc\u0631 \u0646\u0633\u0628\u062a \u0628\u062f\u06cc\u0645 \u06a9\u0647 \u0628\u0639\u062f \u0627\u0632 \u0645\u0633\u0627\u0648\u06cc \u0645\u06cc\u0627\u062f. \u0647\u0631 \u0686\u06cc \u06a9\u0647 \u0628\u0639\u062f \u0627\u0632 \u0645\u0633\u0627\u0648\u06cc \u0627\u0648\u0645\u062f\u0647 \u0627\u06cc\u0646\u062c\u0627 \u0634\u0628\u06cc\u0647 \u0628\u0647 \u06cc\u0647 \u0622\u062f\u0631\u0633\u0647 \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0634\u0645\u0627 \u0631\u0648 \u0628\u0647 \u062c\u0627\u06cc\u06cc \u0645\u06cc\u062f\u0647 \u0686\u0648\u0646 \u0622\u062f\u0631\u0633\u0634 \u0631\u0648 \u062f\u0627\u0631\u06cc\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-start:12;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"        var myPubRenderer = myTestObject.GetComponent&lt;Renderer&gt;();\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #000000\">        <\/span><span style=\"color: #0000FF\">var<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">myPubRenderer<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">GetComponent<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #267F99\">Renderer<\/span><span style=\"color: #000000\">&gt;();<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-b113943\" data-block-id=\"b113943\"><p class=\"stk-block-text__text\"> myTestObject \u0645\u0627 \u06a9\u0647 \u0628\u0647 \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0648\u0635\u0644\u0647 \u0648 \u062d\u0627\u0644\u0627 GetComponent \u06a9\u0647 \u06cc\u0647 \u0645\u062a\u062f\u0647 (\u062a\u0648\u0635\u06cc\u062d \u0645\u062a\u062f \u0631\u0648 <a href=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/unity-methods\/\" data-type=\"link\" data-id=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/unity-methods\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0627\u06cc\u0646\u062c\u0627<\/a> \u0628\u062e\u0648\u0646\u06cc\u062f) \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0627 \u0631\u0648 \u0628\u0647 \u06a9\u0650\u0645\u067e\u0648\u0646\u0646\u062a renderer \u0645\u06cc\u062f\u0647 \u06a9\u0647 \u0627\u06af\u0647 \u0627\u06cc\u0646 \u06a9\u0650\u0645\u067e\u0648\u0646\u0646\u062a \u0631\u0648 \u062f\u0631 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0646\u06af\u0627\u0647 \u06a9\u0646\u06cc\u062f \u0645\u06cc\u200c\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u06a9\u0646\u062a\u0631\u0644 \u0632\u06cc\u0627\u062f\u06cc \u0631\u0648\u06cc \u0644\u06cc\u0648\u0627\u0646 \u062f\u0627\u0631\u0647 \u0645\u062b\u0644 \u06a9\u0646\u062a\u0631\u0644 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0648 \u0633\u0627\u06cc\u0647. \u062e\u0628 \u062a\u0627 \u0627\u06cc\u0646\u062c\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0627 \u0628\u0647 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0628\u0631\u0642\u0631\u0627\u0631 \u0634\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-fb2dfaa\" data-block-id=\"fb2dfaa\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1153\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-6.jpg\" width=\"900\" height=\"606\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-6.jpg 900w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-6-300x202.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-6-768x517.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-6-500x337.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-6-800x539.jpg 800w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-b88e50f\" data-block-id=\"b88e50f\"><p class=\"stk-block-text__text\">\u062d\u0627\u0644\u0627 \u062f\u0631 \u062e\u0637 \u0628\u0639\u062f\u06cc \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u06a9\u0647 \u0628\u0647 \u0645\u062a\u063a\u06cc\u0631 myPubRenderer \u0646\u0633\u0628\u062a \u062f\u0627\u062f\u0645 \u0645\u06cc \u062a\u0648\u0646\u0645 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0631\u0648 \u0628\u0627 SetColor \u06a9\u0647 \u06cc\u0647 \u0645\u062a\u062f\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u0645\u060c \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062a\u062f \u0631\u0646\u06af \u0627\u0635\u0644\u06cc \u0645\u062a\u0631\u06cc\u0627\u0644 \u0628\u0627 Color_ \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc\u0634\u0647 \u0648 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc \u0628\u0647 \u0622\u0646 \u0628\u0627 Color &nbsp;\u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u0634\u0647 \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u062c\u0627 \u0628\u0647 &nbsp;red \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u06a9\u0646\u0647. \u0627\u06cc\u0646 \u0631\u0648 \u0647\u0645 \u0628\u06af\u0645 \u06a9\u0647 \u062f\u0631 \u06cc\u0647 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0645\u0645\u06a9\u0646\u0647 \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0647\u200c\u0627\u06cc \u0647\u0645 \u0628\u0627\u0634\u0647 \u0645\u062b\u0644 \u0631\u0646\u06af \u0642\u0633\u0645\u062a Emission \u06a9\u0647 \u0627\u06af\u0647 \u0628\u062e\u0648\u0627\u06cc\u062f \u0627\u0648\u0646 \u0631\u0648 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u06cc\u062f \u0628\u0647 \u062c\u0627\u06cc Color_ \u062f\u0631 \u0627\u06cc\u0646 \u062e\u0637 EmissionColor_ \u0631\u0648 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-start:13;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"        myPubRenderer.material.SetColor(&quot;_Color&quot;, Color.red);\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #000000\">        <\/span><span style=\"color: #001080\">myPubRenderer<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">material<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #795E26\">SetColor<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;_Color&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">Color<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">red<\/span><span style=\"color: #000000\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-e8296c4\" data-block-id=\"e8296c4\"><p class=\"stk-block-text__text\">\u062f\u0631 \u0636\u0645\u0646 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u062f \u0641\u0631\u0642\u06cc \u0646\u0645\u06cc\u200c\u06a9\u0646\u0647 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0686\u06cc \u0628\u0627\u0634\u0647 \u0648 \u0627\u06af\u0647 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0631\u0648 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u06cc\u062f \u0648 \u0627\u0648\u0646 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0631\u0646\u06af \u0627\u0635\u0644\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u0627\u06cc\u0646 \u06a9\u062f \u0647\u0645\u0686\u0646\u0627\u0646 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u0647 \u0645\u062b\u0644\u0627 \u0627\u06af\u0647 \u0645\u062a\u0631\u06cc\u0627\u0644 standard \u0631\u0648 \u062f\u0631 \u0642\u0633\u0645\u062a Shader \u0628\u0647 Unlit &gt; Color \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u0645 \u0686\u0648\u0646 \u0627\u06cc\u0646 \u0645\u062a\u0631\u06cc\u0627\u0644 \u0647\u0645 \u0631\u0646\u06af \u0627\u0635\u0644\u06cc \u062f\u0627\u0631\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u0634\u0647.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-6de683c\" data-block-id=\"6de683c\"><figure><span class=\"stk-img-wrapper stk-image--shape-stretch stk--has-lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-1157\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7.jpg\" width=\"1050\" height=\"693\" srcset=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7.jpg 1050w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7-300x198.jpg 300w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7-1024x676.jpg 1024w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7-768x507.jpg 768w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7-500x330.jpg 500w, https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-7-800x528.jpg 800w\" sizes=\"auto, (max-width: 1050px) 100vw, 1050px\" \/><\/span><\/figure><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-d4f62d2\" data-block-id=\"d4f62d2\"><p class=\"stk-block-text__text\">\u062f\u0631 \u0622\u062e\u0631 \u0627\u06cc\u0646 \u0631\u0648 \u0647\u0645 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u0645 \u06a9\u0647 \u0645\u0645\u06a9\u0646\u0647 \u0627\u06cc\u0646 \u0633\u0648\u0627\u0644 \u067e\u06cc\u0634 \u0628\u06cc\u0627\u062f \u06a9\u0647 \u0646\u0645\u06cc\u0634\u0647 \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0631\u0648 \u0628\u0647 \u06cc\u0647 \u0645\u062a\u063a\u06cc\u0631 \u062f\u0631 GameObject \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0633\u06a9\u0631\u06cc\u067e\u062a \u0631\u0648 \u0628\u0646\u062f\u0627\u0632\u06cc\u0645 \u0632\u06cc\u0631 \u0645\u062f\u0644 \u0644\u06cc\u0648\u0627\u0646 \u0648 \u06a9\u0627\u0631 \u06a9\u0646\u0647. \u062c\u0648\u0627\u0628\u0634 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0628\u0644\u0647 \u0645\u06cc\u0634\u0647 \u0628\u0627 \u06a9\u062f \u0632\u06cc\u0631. \u0648\u0644\u06cc \u0627\u06cc\u0646 \u0631\u0648 \u062f\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u06cc\u062f \u06a9\u0647 \u0631\u0648\u0634 \u0628\u0627\u0644\u0627 \u0631\u0648 \u062f\u0631 \u0622\u06cc\u0646\u062f\u0647 \u0628\u06cc\u0634\u062a\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers fontFamilyForCodePro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class SetColorForTestObject : MonoBehaviour\n{\n    Renderer myTestObject;\n\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        myTestObject = GetComponent&lt;Renderer&gt;();\n        myTestObject.material.color = Color.red;\n    }\n}\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">System<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Collections<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #267F99\">Generic<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">UnityEngine<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #0000FF\">public<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">class<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">SetColorForTestObject<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #267F99\">MonoBehaviour<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #267F99\">Renderer<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #008000\">    \/\/ Start is called before the first frame update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">void<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Start<\/span><span style=\"color: #000000\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #795E26\">GetComponent<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #267F99\">Renderer<\/span><span style=\"color: #000000\">&gt;();<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><span style=\"color: #001080\">myTestObject<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">material<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">color<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #001080\">Color<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">red<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-c54009f\" data-block-id=\"c54009f\"><p class=\"stk-block-text__text\"><a href=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/change-the-color-of-the-material-with-button\/\" data-type=\"link\" data-id=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/change-the-color-of-the-material-with-button\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0647<\/a> \u0631\u0648 \u0647\u0645 \u06a9\u0647 \u062f\u0631 \u0645\u0648\u0631\u062f \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af \u0647\u0645\u06cc\u0646 \u0645\u062f\u0644 \u0628\u0648\u0633\u06cc\u0644\u0647 \u06cc\u0647 \u062f\u06a9\u0645\u0647 \u0633\u062a \u0631\u0648 \u0628\u062e\u0648\u0646\u06cc\u062f.<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-image stk-block-image has-text-align-left stk-block stk-673e21c\" data-block-id=\"673e21c\"><style>.stk-673e21c .stk-img-wrapper{width:50px !important}<\/style><figure><a class=\"stk-link\" href=\"https:\/\/mabioca.com\/blog\/scripting\/changing-the-color-of-an-object-using-scripting-in-unity\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"stk-img-wrapper stk-image--shape-stretch\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img\" src=\"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2021\/12\/languages.svg\" width=\"50\" height=\"300\"\/><\/span><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0639\u062f \u0627\u0632 \u0645\u062f\u062a\u0647\u0627 \u0641\u0631\u0635\u062a\u06cc \u067e\u06cc\u062f\u0627 \u0634\u062f \u062a\u0627 \u0628\u062a\u0648\u0646\u0645 \u0646\u0648\u0634\u062a\u0647\u200c\u0627\u06cc \u0628\u0647 \u0648\u0628\u0633\u0627\u06cc\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u0645 \u06a9\u0647 \u0647\u0645 \u0645\u0641\u06cc\u062f \u0648 \u0647\u0645 \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0645\u0648\u0636\u0648\u0639 \u0648\u0627\u0642\u0639\u06cc\u062a \u0645\u062c\u0627\u0632\u06cc \u0628\u0627\u0634\u0647. \u0628\u0647 \u0641\u06a9\u0631\u0645 \u0631\u0633\u06cc\u062f \u06a9\u0647 \u067e\u0631\u062f\u0627\u062e\u062a\u0646 \u0628\u0647 \u0645\u0648\u0636\u0648\u0639 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0633\u06cc \u0634\u0627\u0631\u067e \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u0628\u0627\u0632\u06cc \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0634\u0627\u06cc\u062f \u0627\u06cc\u062f\u0647\u200c\u06cc \u062e\u0648\u0628\u06cc \u0628\u0627\u0634\u0647. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0647 \u0648 \u0646\u0648\u0634\u062a\u0647\u200c\u0647\u0627\u06cc \u0628\u0639\u062f\u06cc \u0633\u0639\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1354,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_titles_title":"\u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af \u06cc\u06a9 \u0645\u0648\u0636\u0648\u0639 \u0628\u0627 \u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u06cc\u0648\u0646\u06cc\u062a\u06cc","_seopress_titles_desc":"\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0627\u0632 \u0639\u0646\u0648\u0627\u0646\u0634 \u0647\u0645 \u062a\u0627 \u062d\u062f\u06cc \u0645\u0634\u062e\u0635\u0647 \u0642\u0631\u0627\u0631\u0647 \u0628\u0627 \u0686\u0646\u062f \u062e\u0637 \u06a9\u062f \u0633\u0627\u062f\u0647 \u06a9\u0627\u0631\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0631\u0646\u06af \u06cc\u0647 \u0644\u06cc\u0648\u0627\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0646\u0647 \u0645\u062b\u0644\u0627 \u0642\u0631\u0645\u0632 \u0628\u0634\u0647. ","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"none","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg","_seopress_social_fb_img_attachment_id":1354,"_seopress_social_fb_img_width":700,"_seopress_social_fb_img_height":525,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg","_seopress_social_twitter_img_attachment_id":1354,"_seopress_social_twitter_img_width":700,"_seopress_social_twitter_img_height":525,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"both","_seopress_redirections_param":"","_seopress_redirections_type":301,"_seopress_analysis_target_kw":"\u06cc\u0648\u0646\u06cc\u062a\u06cc,\u0633\u06cc \u0634\u0627\u0631\u067e,\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc,c#,\u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af,color,unity,material","_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[237],"tags":[239,238,240,155],"class_list":["post-1090","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-c","tag-238","tag-240","tag-155"],"blocksy_meta":{"has_hero_section":"default","styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6},"hero_section":"type-2","pageTitleBackground":{"background_type":"gradient","background_pattern":"type-1","background_image":{"attachment_id":null,"x":0,"y":0},"gradient":"linear-gradient(0deg,rgb(250,250,250) 0%,rgb(169,183,194) 100%)","background_repeat":"repeat","background_size":"auto","background_attachment":"scroll","patternColor":{"default":{"color":"#e5e7ea"}},"overlayColor":{"default":{"color":"CT_CSS_SKIP_RULE"}},"backgroundColor":{"default":{"color":"var(--theme-palette-color-6)"}}}},"featured_image_urls_v2":{"full":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"thumbnail":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1-150x150.jpg",150,150,true],"medium":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1-300x225.jpg",300,225,true],"medium_large":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"large":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"1536x1536":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"2048x2048":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"vp_sm":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1-500x375.jpg",500,375,true],"vp_md":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"vp_lg":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"vp_xl":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"vp_sm_popup":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1-500x375.jpg",500,375,true],"vp_md_popup":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false],"vp_xl_popup":["https:\/\/mabioca.com\/pa\/wp-content\/uploads\/sites\/4\/2024\/01\/Unity-ColorChange-FeaturedImage-v1.jpg",700,525,false]},"post_excerpt_stackable_v2":"<p>\u0628\u0639\u062f \u0627\u0632 \u0645\u062f\u062a\u0647\u0627 \u0641\u0631\u0635\u062a\u06cc \u067e\u06cc\u062f\u0627 \u0634\u062f \u062a\u0627 \u0628\u062a\u0648\u0646\u0645 \u0646\u0648\u0634\u062a\u0647\u200c\u0627\u06cc \u0628\u0647 \u0648\u0628\u0633\u0627\u06cc\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u0645 \u06a9\u0647 \u0647\u0645 \u0645\u0641\u06cc\u062f \u0648 \u0647\u0645 \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0645\u0648\u0636\u0648\u0639 \u0648\u0627\u0642\u0639\u06cc\u062a \u0645\u062c\u0627\u0632\u06cc \u0628\u0627\u0634\u0647. \u0628\u0647 \u0641\u06a9\u0631\u0645 \u0631\u0633\u06cc\u062f \u06a9\u0647 \u067e\u0631\u062f\u0627\u062e\u062a\u0646 \u0628\u0647 \u0645\u0648\u0636\u0648\u0639 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0633\u06cc \u0634\u0627\u0631\u067e \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u0628\u0627\u0632\u06cc \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0634\u0627\u06cc\u062f \u0627\u06cc\u062f\u0647\u200c\u06cc \u062e\u0648\u0628\u06cc \u0628\u0627\u0634\u0647. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0647 \u0648 \u0646\u0648\u0634\u062a\u0647\u200c\u0647\u0627\u06cc \u0628\u0639\u062f\u06cc \u0633\u0639\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc \u0633\u0627\u062f\u0647\u200c \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u067e\u0631\u062f\u0627\u0632\u0645. \u0627\u06af\u0647 \u0628\u062e\u0648\u0627\u0645 \u0628\u0627 \u06cc\u06a9 \u0645\u0642\u062f\u0645\u0647\u200c\u06cc \u06a9\u0648\u062a\u0627\u0647 \u0634\u0631\u0648\u0639 \u06a9\u0646\u0645 \u0628\u0627\u06cc\u062f \u0628\u06af\u0645 \u06a9\u0647 \u062a\u0648\u0633\u0639\u0647 \u0633\u06cc \u0634\u0627\u0631\u067e \u062a\u0648\u0633\u0637 \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a \u0627\u0632 \u0633\u0627\u0644 \u06f2\u06f0\u06f0\u06f2 \u0634\u0631\u0648\u0639 \u0634\u062f \u0648 \u062a\u0627 \u0627\u0644\u0627\u0646 \u0627\u062f\u0627\u0645\u0647 \u062f\u0627\u0631\u0647. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0648\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0632\u0628\u0627\u0646 \u0627\u0635\u0644\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u0628\u0627\u0632\u06cc \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0647\u0645&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/mabioca.com\/pa\/blog\/training\/programming\/\" rel=\"category tag\">\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc<\/a>","author_info_v2":{"name":"\u0631\u0636\u0627\u062e\u0627\u0646\u06cc","url":"https:\/\/mabioca.com\/pa\/author\/behrad\/"},"comments_num_v2":"0 \u062f\u06cc\u062f\u06af\u0627\u0647","_links":{"self":[{"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/posts\/1090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/comments?post=1090"}],"version-history":[{"count":1,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/posts\/1090\/revisions"}],"predecessor-version":[{"id":1928,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/posts\/1090\/revisions\/1928"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/media\/1354"}],"wp:attachment":[{"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/media?parent=1090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/categories?post=1090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mabioca.com\/pa\/wp-json\/wp\/v2\/tags?post=1090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}