public static void EmitPivotSO(SceneSerializer s, IOutputStream o, PivotSO so)
 {
     o.AddAttribute(IOStrings.ASOName, so.Name);
     o.AddAttribute(IOStrings.ASOUuid, so.UUID);
     s.EmitTransform(o, so);
     s.EmitMaterial(o, so.GetAssignedSOMaterial());
 }
示例#2
0
 public static void Emit(this SceneSerializer s, IOutputStream o, PivotSO so)
 {
     o.AddAttribute(IOStrings.ASOType, IOStrings.TypePivot);
     o.AddAttribute(IOStrings.ASOName, so.Name);
     s.EmitTransform(o, so);
     s.EmitMaterial(o, so.GetAssignedSOMaterial());
 }
示例#3
0
        public virtual SceneObject BuildPivot(FScene scene, TypedAttribSet attributes)
        {
            PivotSO so = new PivotSO();

            so.Create(scene.PivotSOMaterial, scene.FrameSOMaterial);
            RestorePivotSOType(scene, attributes, so);
            return(so);
        }
示例#4
0
        public virtual SceneObject BuildPivot(FScene scene, TypedAttribSet attributes)
        {
            PivotSO so = new PivotSO();

            so.Create(scene.PivotSOMaterial, scene.FrameMaterial);
            safe_set_property_s(attributes, IOStrings.ASOName, (s) => { so.Name = s; });
            RestoreTransform(so, attributes);
            RestoreMaterial(so, attributes);
            return(so);
        }
示例#5
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);
        }
示例#6
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);
        }
 public static void Emit(this SceneSerializer s, IOutputStream o, PivotSO so)
 {
     o.AddAttribute(IOStrings.ASOType, IOStrings.TypePivot);
     EmitPivotSO(s, o, so);
 }
示例#8
0
 public virtual void RestorePivotSOType(FScene scene, TypedAttribSet attributes, PivotSO so)
 {
     RestoreSOInfo(so, attributes);
     RestoreTransform(so, attributes);
     RestoreMaterial(so, attributes);
 }