跳到主要内容

NGraphics

命名空间:FairyGUI
源码:Assets/Scripts/Core/NGraphics.cs (行 12)

public class NGraphics : IMeshFactory, IBatchable

接口:IMeshFactory, IBatchable

构造函数​

NGraphics(GameObject)​

public NGraphics(GameObject gameObject);
参数类型说明
gameObjectGameObject

源码:Core/NGraphics.cs (行 96)

事件​

meshModifier​

public event Action meshModifier;

当Mesh更新时触发

源码:Core/NGraphics.cs (行 47)

字段​

blendMode​

public BlendMode blendMode;

源码:Core/NGraphics.cs (行 37)

dontClip​

public bool dontClip;

不参与剪裁

源码:Core/NGraphics.cs (行 42)

subInstances​

public List<NGraphics> subInstances;

源码:Core/NGraphics.cs (行 52)

userData​

public Vector4 userData;

源码:Core/NGraphics.cs (行 57)

方法​

CreateSubInstance(string)​

public NGraphics CreateSubInstance(string name);
参数类型说明
namestring

源码:Core/NGraphics.cs (行 835)

Dispose()​

public void Dispose();

源码:Core/NGraphics.cs (行 541)

GetMeshFactory()​

public T GetMeshFactory<T>()
where T : IMeshFactory, new();

源码:Core/NGraphics.cs (行 145)

OnPopulateMesh(VertexBuffer)​

public void OnPopulateMesh(VertexBuffer vb);
参数类型说明
vbVertexBuffer

源码:Core/NGraphics.cs (行 826)

SetMaterial(Material)​

public void SetMaterial(Material material);

Same as material property except that ownership is transferred to this object.

参数类型说明
materialMaterial

源码:Core/NGraphics.cs (行 280)

SetMeshDirty()​

public void SetMeshDirty();

源码:Core/NGraphics.cs (行 502)

SetRenderingOrder(UpdateContext, bool)​

public void SetRenderingOrder(UpdateContext context, bool inBatch);
参数类型说明
contextUpdateContext
inBatchbool

源码:Core/NGraphics.cs (行 384)

SetShaderAndTexture(string, NTexture)​

public void SetShaderAndTexture(string shader, NTexture texture);
参数类型说明
shaderstring
textureNTexture

源码:Core/NGraphics.cs (行 232)

Tint()​

public void Tint();

源码:Core/NGraphics.cs (行 419)

ToggleKeyword(string, bool)​

public void ToggleKeyword(string keyword, bool enabled);
参数类型说明
keywordstring
enabledbool

源码:Core/NGraphics.cs (行 304)

Update(UpdateContext, float, bool)​

public void Update(UpdateContext context, float alpha, bool grayed);
参数类型说明
contextUpdateContext
alphafloat
grayedbool

源码:Core/NGraphics.cs (行 581)

UpdateMesh()​

public bool UpdateMesh();

源码:Core/NGraphics.cs (行 517)

属性​

color​

public Color color { get; set; }

源码:Core/NGraphics.cs (行 410)

contentRect​

public Rect contentRect { get; set; }

源码:Core/NGraphics.cs (行 158)

enabled​

public bool enabled { get; set; }

源码:Core/NGraphics.cs (行 359)

flip​

public FlipType flip { get; set; }

源码:Core/NGraphics.cs (行 177)

gameObject​

public GameObject gameObject { get; private set; }

源码:Core/NGraphics.cs (行 17)

material​

public Material material { get; set; }

源码:Core/NGraphics.cs (行 244)

materialKeywords​

public string[] materialKeywords { get; set; }

源码:Core/NGraphics.cs (行 289)

materialPropertyBlock​

public MaterialPropertyBlock materialPropertyBlock { get; }

源码:Core/NGraphics.cs (行 487)

mesh​

public Mesh mesh { get; private set; }

源码:Core/NGraphics.cs (行 32)

meshFactory​

public IMeshFactory meshFactory { get; set; }

源码:Core/NGraphics.cs (行 127)

meshFilter​

public MeshFilter meshFilter { get; private set; }

源码:Core/NGraphics.cs (行 22)

meshRenderer​

public MeshRenderer meshRenderer { get; private set; }

源码:Core/NGraphics.cs (行 27)

renderingOrder​

public int renderingOrder { get; set; }

源码:Core/NGraphics.cs (行 378)

shader​

public string shader { get; set; }

源码:Core/NGraphics.cs (行 217)

sortingOrder​

public int sortingOrder { get; set; }

源码:Core/NGraphics.cs (行 368)

texture​

public NTexture texture { get; set; }

源码:Core/NGraphics.cs (行 193)

vertexMatrix​

public VertexMatrix vertexMatrix { get; set; }

源码:Core/NGraphics.cs (行 467)