コード例 #1
0
ファイル: LODGroupSetupEditor.cs プロジェクト: Hengle/LD43
        void OnEnable()
        {
            lodGroupSetup = (LODGroupSetup)target;
            oldLods       = lodGroupSetup.lodGroup.GetLODs();

            UnityEditor.EditorApplication.update += MyUpdate;
        }
コード例 #2
0
        void OnEnable()
        {
            lodGroupSetup = (LODGroupSetup)target;
            LODGroup lodGroup = lodGroupSetup.lodGroup;

            oldLods = lodGroup.GetLODs();
            animateCrossFadingOld = lodGroup.animateCrossFading;
            fadeModeOld           = lodGroup.fadeMode;

            UnityEditor.EditorApplication.update += MyUpdate;
        }