Example #1
0
        public override void DoCommand(AdvEngine engine)
        {
            AdvGraphicLayer layer = engine.GraphicManager.FindLayer(this.name);

            if (layer != null)
            {
                layer.ResetCanvasRectTransform();
            }
            else
            {
                Debug.LogError("Not found " + this.name + " Please input Layer name");
            }
        }
        public override void DoCommand(AdvEngine engine)
        {
            //オブジェクト名からレイヤーを探す
            AdvGraphicLayer layer = engine.GraphicManager.FindLayer(name);

            if (layer != null)
            {
                //リセットして初期状態に
                layer.ResetCanvasRectTransform();
            }
            else
            {
                Debug.LogError("Not found " + name + " Please input Layer name");
            }
        }