您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
723 B
24 行
723 B
using System;
|
|
using Unity.Entities;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace Unity.Rendering
|
|
{
|
|
/// <summary>
|
|
/// Render Mesh with Material (must be instanced material) by object to world matrix.
|
|
/// Specified by the LocalToWorld associated with Entity.
|
|
/// </summary>
|
|
[Serializable]
|
|
public struct MeshInstanceRenderer : ISharedComponentData
|
|
{
|
|
public Mesh mesh;
|
|
public Material material;
|
|
public int subMesh;
|
|
|
|
public ShadowCastingMode castShadows;
|
|
public bool receiveShadows;
|
|
}
|
|
|
|
public class MeshInstanceRendererComponent : SharedComponentDataWrapper<MeshInstanceRenderer> { }
|
|
}
|