{"categories":["Unity","Unity - GitHub","Unity - \u81ea\u4f5c\u30ea\u30dd\u30b8\u30c8\u30ea"],"url":"https://baba-s.hatenablog.com/entry/2020/11/25/090000","height":"190","version":"1.0","description":"\u30ea\u30dd\u30b8\u30c8\u30ea \u4f7f\u7528\u4f8b using Kogane; using UnityEngine; public class Example : MonoBehaviour { private void Awake() { int i = 25; Debug.Log( i.Clamp( 0, 100 ) ); Debug.Log( i.Max( 100 ) ); Debug.Log( i.Min( 0 ) ); float f = 25f; Debug.Log( f.Clamp01() ); Debug.Log( f.Clamp( 0, 100 ) ); Debug.Log( f.Max( 100 ) );\u2026","blog_url":"https://baba-s.hatenablog.com/","title":"\u3010Unity\u3011Mathf.Clamp\u3001Mathf.Max\u3001Mathf.Min \u3092\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u3067\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u300cUniClampExtensionMethods\u300d\u3092 GitHub \u306b\u516c\u958b\u3057\u307e\u3057\u305f","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","provider_name":"Hatena Blog","width":"100%","author_url":"https://blog.hatena.ne.jp/baba_s/","published":"2020-11-25 09:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2020%2F11%2F25%2F090000\" title=\"\u3010Unity\u3011Mathf.Clamp\u3001Mathf.Max\u3001Mathf.Min \u3092\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u3067\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u300cUniClampExtensionMethods\u300d\u3092 GitHub \u306b\u516c\u958b\u3057\u307e\u3057\u305f - \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>","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","type":"rich","provider_url":"https://hatena.blog","author_name":"baba_s"}