public SkinnedMeshRendererSerializable(SkinnedMeshRenderer renderer) : base(renderer)
 {
     quality              = renderer.quality;
     updateWhenOffscreen  = renderer.updateWhenOffscreen;
     sharedMesh           = renderer.sharedMesh != null ? new MeshSerializable(renderer.sharedMesh) : null;
     skinnedMotionVectors = renderer.skinnedMotionVectors;
     localBounds          = renderer.localBounds;
     bones    = renderer.bones != null ? new TransformReferenceList(renderer.bones) : null;
     rootBone = renderer.rootBone != null ? new TransformReference(renderer.rootBone) : null;
 }
Beispiel #2
0
 public MeshRendererSerializable(MeshRenderer renderer) : base(renderer)
 {
     additionalVertexStreams = renderer.additionalVertexStreams != null ? new MeshSerializable(renderer.additionalVertexStreams) : null;
 }
 public MeshFilterSerializable(MeshFilter meshFilter) : base(meshFilter)
 {
     mesh = meshFilter.mesh != null ? new MeshSerializable(meshFilter.mesh) : null;
 }