コード例 #1
0
        void ApplyScene()
        {
            int lw = (int)model.data.sizeDelta.x;
            int lh = (int)model.data.sizeDelta.y;

            if (Scene == null)
            {
                Scene             = new Scene2D();
                Scene.TextureMode = true;
                Scene.ReSize(lw, lh);
                offset += 100;
                Scene.Root.position = new Vector3(offset, 0, 0);
                Context.texture     = Scene.texture;
            }
            else
            {
                if (w != lw | h != lh)
                {
                    Scene.ReSize(w, h);
                    Context.texture = Scene.texture;
                }
            }
            w = lw;
            h = lh;
        }