{"blog_url":"https://baba-s.hatenablog.com/","categories":["Unity","Unity - Tips"],"height":"190","provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2022%2F05%2F17%2F090000\" title=\"\u3010Unity\u3011Unity 2021 \u4ee5\u964d\u3067\u914d\u5217\u306e\u672b\u5c3e\u306e\u8981\u7d20\u3092\u7c21\u5358\u306b\u53d6\u5f97\u3059\u308b\u65b9\u6cd5 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2022-05-17 09:00:00","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1638616250229186","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","description":"\u6982\u8981 using System.Linq; using UnityEngine; public class Example : MonoBehaviour { private void Awake() { var array = new[] { 1, 2, 3 }; Debug.Log( array[ array.Length - 1 ] ); // \u6614\u306a\u304c\u3089\u306e\u65b9\u6cd5 Debug.Log( array.Last() ); // LINQ \u3092\u4f7f\u7528 Debug.Log( array[ ^1 ] ); // C# 8.0 \u4ee5\u964d\u306e\u8a18\u6cd5 } } Unity 2021 \u4ee5\u964d\u3042\u308c\u3070 array[ ^1 ] \u3068\u2026","type":"rich","author_name":"baba_s","url":"https://baba-s.hatenablog.com/entry/2022/05/17/090000","author_url":"https://blog.hatena.ne.jp/baba_s/","provider_name":"Hatena Blog","title":"\u3010Unity\u3011Unity 2021 \u4ee5\u964d\u3067\u914d\u5217\u306e\u672b\u5c3e\u306e\u8981\u7d20\u3092\u7c21\u5358\u306b\u53d6\u5f97\u3059\u308b\u65b9\u6cd5","version":"1.0"}