コード例 #1
0
    // which object to choose
    void Act2(Vector3Int act)
    {
        actObjNum = act.x;
        if (loadPrecompute)
        {
            GameObject _shape = packEvol.LoadShape(pack.sources[actObjNum], loadFromResources: false);
            shapes[actObjNum] = helper.AddShape(_shape, "shape" + actObjNum,
                                                new Vector3(100f, 100f, 100f), Quaternion.identity,
                                                Vector3.one, false, false, keepChild: editorMode);

            shapes[actObjNum].transform.localScale = pack.scales[actObjNum];
        }
    }