Example #1
0
 public override void SerializeSettings(GraphSerializationContext ctx)
 {
     base.SerializeSettings(ctx);
     ctx.SerializeUnityObject(this.sourceMesh);
     ctx.SerializeVector3(this.offset);
     ctx.SerializeVector3(this.rotation);
     ctx.writer.Write(this.scale);
     ctx.writer.Write(this.accurateNearestNode);
 }
Example #2
0
        public override void SerializeSettings(GraphSerializationContext ctx)
        {
            base.SerializeSettings(ctx);

            ctx.SerializeUnityObject(root);
            ctx.writer.Write(searchTag ?? "");
            ctx.writer.Write(maxDistance);
            ctx.SerializeVector3(limits);
            ctx.writer.Write(raycast);
            ctx.writer.Write(use2DPhysics);
            ctx.writer.Write(thickRaycast);
            ctx.writer.Write(thickRaycastRadius);
            ctx.writer.Write(recursive);
            ctx.writer.Write(autoLinkNodes);
            ctx.writer.Write((int)mask);
        }
        public override void SerializeSettings (GraphSerializationContext ctx) {
            base.SerializeSettings(ctx);

            ctx.SerializeUnityObject(root);
            ctx.writer.Write(searchTag ?? "");
            ctx.writer.Write(maxDistance);
            ctx.SerializeVector3(limits);
            ctx.writer.Write(raycast);
            ctx.writer.Write(use2DPhysics);
            ctx.writer.Write(thickRaycast);
            ctx.writer.Write(thickRaycastRadius);
            ctx.writer.Write(recursive);
            ctx.writer.Write(autoLinkNodes);
            ctx.writer.Write((int)mask);
            ctx.writer.Write(optimizeForSparseGraph);
            ctx.writer.Write(optimizeFor2D);
        }