예제 #1
0
        override public SceneObject Duplicate()
        {
            PivotSO copy = new PivotSO();

            copy.parentScene = this.parentScene;
            copy.Create(this.GetAssignedSOMaterial(), this.frameMaterial, shapeGO.GetLayer());
            copy.SetLocalFrame(
                this.GetLocalFrame(CoordSpace.ObjectCoords), CoordSpace.ObjectCoords);
            copy.MaintainConsistentViewSize = this.MaintainConsistentViewSize;
            return(copy);
        }
예제 #2
0
        override public SceneObject Duplicate()
        {
            PivotSO copy = new PivotSO();

            copy.parentScene = this.parentScene;
            copy.Create(this.GetAssignedSOMaterial(),
                        (frameMesh != null) ? frameMesh.GetComponent <Renderer>().material : null,
                        meshGO.layer);
            copy.SetLocalFrame(
                this.GetLocalFrame(CoordSpace.ObjectCoords), CoordSpace.ObjectCoords);
            return(copy);
        }