Click or drag to resize
Ab4d.SharpEngine logo

RenderingLayerReplace Method

Replaces oldRenderingItem object with newRenderingItem (the newRenderingItem preserves the positions of the oldRenderingItem).

Namespace: Ab4d.SharpEngine.RenderingLayers
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public bool Replace(
	RenderingItem oldRenderingItem,
	RenderingItem newRenderingItem,
	Effect? effect
)

Parameters

oldRenderingItem  RenderingItem
RenderingItem object that will be replaced
newRenderingItem  RenderingItem
RenderingItem object that will replace the oldRenderingItem
effect  Effect
effect that was used to setup this RenderingItem (this is compared with AllowedEffectType; when null, then no comparison is done)

Return Value

Boolean
true if object was removed or false if object was not found
See Also