本文整理汇总了C#中Pathfinding.Serialization.GraphSerializationContext.SerializeVector3方法的典型用法代码示例。如果您正苦于以下问题:C# GraphSerializationContext.SerializeVector3方法的具体用法?C# GraphSerializationContext.SerializeVector3怎么用?C# GraphSerializationContext.SerializeVector3使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pathfinding.Serialization.GraphSerializationContext
的用法示例。
在下文中一共展示了GraphSerializationContext.SerializeVector3方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SerializeSettings
public override void SerializeSettings ( GraphSerializationContext ctx ) {
base.SerializeSettings (ctx);
ctx.writer.Write (characterRadius);
ctx.writer.Write (contourMaxError);
ctx.writer.Write (cellSize);
ctx.writer.Write (cellHeight);
ctx.writer.Write (walkableHeight);
ctx.writer.Write (maxSlope);
ctx.writer.Write (maxEdgeLength);
ctx.writer.Write (editorTileSize);
ctx.writer.Write (tileSizeX);
ctx.writer.Write (nearestSearchOnlyXZ);
ctx.writer.Write (useTiles);
ctx.writer.Write ((int)relevantGraphSurfaceMode);
ctx.writer.Write (rasterizeColliders);
ctx.writer.Write (rasterizeMeshes);
ctx.writer.Write (rasterizeTerrain);
ctx.writer.Write (rasterizeTrees);
ctx.writer.Write (colliderRasterizeDetail);
ctx.SerializeVector3 (forcedBoundsCenter);
ctx.SerializeVector3 (forcedBoundsSize);
ctx.writer.Write (mask);
ctx.writer.Write (tagMask.Count);
for (int i = 0; i < tagMask.Count; i++) {
ctx.writer.Write (tagMask[i]);
}
ctx.writer.Write (showMeshOutline);
ctx.writer.Write (showNodeConnections);
ctx.writer.Write (terrainSampleSize);
ctx.writer.Write (walkableClimb);
ctx.writer.Write (minRegionSize);
ctx.writer.Write (tileSizeZ);
}
示例2: SerializeSettings
public override void SerializeSettings (GraphSerializationContext ctx) {
base.SerializeSettings(ctx);
ctx.writer.Write(aspectRatio);
ctx.SerializeVector3(rotation);
ctx.SerializeVector3(center);
ctx.SerializeVector3((Vector3)unclampedSize);
ctx.writer.Write(nodeSize);
// collision
collision.SerializeSettings(ctx);
ctx.writer.Write(maxClimb);
ctx.writer.Write(maxClimbAxis);
ctx.writer.Write(maxSlope);
ctx.writer.Write(erodeIterations);
ctx.writer.Write(erosionUseTags);
ctx.writer.Write(erosionFirstTag);
ctx.writer.Write(autoLinkGrids);
ctx.writer.Write((int)neighbours);
ctx.writer.Write(cutCorners);
ctx.writer.Write(penaltyPosition);
ctx.writer.Write(penaltyPositionFactor);
ctx.writer.Write(penaltyAngle);
ctx.writer.Write(penaltyAngleFactor);
ctx.writer.Write(penaltyAnglePower);
ctx.writer.Write(isometricAngle);
ctx.writer.Write(uniformEdgeCosts);
}
示例3: SerializeSettings
public override void SerializeSettings ( GraphSerializationContext ctx ) {
base.SerializeSettings (ctx);
ctx.SerializeUnityObject ( sourceMesh );
ctx.SerializeVector3 (offset);
ctx.SerializeVector3 (rotation);
ctx.writer.Write(scale);
ctx.writer.Write(accurateNearestNode);
}