Skip to main content

NGraphics

Namespace:FairyGUI
Source:Assets/Scripts/Core/NGraphics.cs (line 12)

public class NGraphics : IMeshFactory, IBatchable

Interfaces:IMeshFactory, IBatchable

Constructors​

NGraphics(GameObject)​

public NGraphics(GameObject gameObject);
ParameterTypeDescription
gameObjectGameObject

Source:Core/NGraphics.cs (line 96)

Events​

meshModifier​

public event Action meshModifier;

当Mesh更新时触发

Source:Core/NGraphics.cs (line 47)

Fields​

blendMode​

public BlendMode blendMode;

Source:Core/NGraphics.cs (line 37)

dontClip​

public bool dontClip;

不参与剪裁

Source:Core/NGraphics.cs (line 42)

subInstances​

public List<NGraphics> subInstances;

Source:Core/NGraphics.cs (line 52)

userData​

public Vector4 userData;

Source:Core/NGraphics.cs (line 57)

Methods​

CreateSubInstance(string)​

public NGraphics CreateSubInstance(string name);
ParameterTypeDescription
namestring

Source:Core/NGraphics.cs (line 835)

Dispose()​

public void Dispose();

Source:Core/NGraphics.cs (line 541)

GetMeshFactory()​

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

Source:Core/NGraphics.cs (line 145)

OnPopulateMesh(VertexBuffer)​

public void OnPopulateMesh(VertexBuffer vb);
ParameterTypeDescription
vbVertexBuffer

Source:Core/NGraphics.cs (line 826)

SetMaterial(Material)​

public void SetMaterial(Material material);

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

ParameterTypeDescription
materialMaterial

Source:Core/NGraphics.cs (line 280)

SetMeshDirty()​

public void SetMeshDirty();

Source:Core/NGraphics.cs (line 502)

SetRenderingOrder(UpdateContext, bool)​

public void SetRenderingOrder(UpdateContext context, bool inBatch);
ParameterTypeDescription
contextUpdateContext
inBatchbool

Source:Core/NGraphics.cs (line 384)

SetShaderAndTexture(string, NTexture)​

public void SetShaderAndTexture(string shader, NTexture texture);
ParameterTypeDescription
shaderstring
textureNTexture

Source:Core/NGraphics.cs (line 232)

Tint()​

public void Tint();

Source:Core/NGraphics.cs (line 419)

ToggleKeyword(string, bool)​

public void ToggleKeyword(string keyword, bool enabled);
ParameterTypeDescription
keywordstring
enabledbool

Source:Core/NGraphics.cs (line 304)

Update(UpdateContext, float, bool)​

public void Update(UpdateContext context, float alpha, bool grayed);
ParameterTypeDescription
contextUpdateContext
alphafloat
grayedbool

Source:Core/NGraphics.cs (line 581)

UpdateMesh()​

public bool UpdateMesh();

Source:Core/NGraphics.cs (line 517)

Properties​

color​

public Color color { get; set; }

Source:Core/NGraphics.cs (line 410)

contentRect​

public Rect contentRect { get; set; }

Source:Core/NGraphics.cs (line 158)

enabled​

public bool enabled { get; set; }

Source:Core/NGraphics.cs (line 359)

flip​

public FlipType flip { get; set; }

Source:Core/NGraphics.cs (line 177)

gameObject​

public GameObject gameObject { get; private set; }

Source:Core/NGraphics.cs (line 17)

material​

public Material material { get; set; }

Source:Core/NGraphics.cs (line 244)

materialKeywords​

public string[] materialKeywords { get; set; }

Source:Core/NGraphics.cs (line 289)

materialPropertyBlock​

public MaterialPropertyBlock materialPropertyBlock { get; }

Source:Core/NGraphics.cs (line 487)

mesh​

public Mesh mesh { get; private set; }

Source:Core/NGraphics.cs (line 32)

meshFactory​

public IMeshFactory meshFactory { get; set; }

Source:Core/NGraphics.cs (line 127)

meshFilter​

public MeshFilter meshFilter { get; private set; }

Source:Core/NGraphics.cs (line 22)

meshRenderer​

public MeshRenderer meshRenderer { get; private set; }

Source:Core/NGraphics.cs (line 27)

renderingOrder​

public int renderingOrder { get; set; }

Source:Core/NGraphics.cs (line 378)

shader​

public string shader { get; set; }

Source:Core/NGraphics.cs (line 217)

sortingOrder​

public int sortingOrder { get; set; }

Source:Core/NGraphics.cs (line 368)

texture​

public NTexture texture { get; set; }

Source:Core/NGraphics.cs (line 193)

vertexMatrix​

public VertexMatrix vertexMatrix { get; set; }

Source:Core/NGraphics.cs (line 467)