C# 클래스 Nez.Overlap2D.Runtime.CompositeItemVO

상속: MainItemVO
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
composite CompositeVO
height float
scissorHeight float
scissorWidth float
scissorX float
scissorY float
width float

공개 메소드들

메소드 설명
ToString ( ) : string
calculateLayerDepthForChild ( float zIndexMin, float zIndexMax, MainItemVO child, float zIndexMaxChild = 100 ) : float

gets the layerDepth for a child composite. It calculates it by first getting the composite (parent) layerDepth the standard way (via zIndexMin/Max) and then subtracting the inverse of the child (O2DMainItem) layerDepth which uses zIndexMaxChild. For this to work intelligently zIndexMaxComp should be the standard scene.zIndexMax value and zIndexMaxChild should be a much higher number. The reason for this is so that the parent component has a small offset to use for each child and so they dont overflow to the next zIndex. Example: parent is 14. Any children must end up being between 14 and 15 so they dont overflow on top of another composite.

메소드 상세

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

calculateLayerDepthForChild() 공개 메소드

gets the layerDepth for a child composite. It calculates it by first getting the composite (parent) layerDepth the standard way (via zIndexMin/Max) and then subtracting the inverse of the child (O2DMainItem) layerDepth which uses zIndexMaxChild. For this to work intelligently zIndexMaxComp should be the standard scene.zIndexMax value and zIndexMaxChild should be a much higher number. The reason for this is so that the parent component has a small offset to use for each child and so they dont overflow to the next zIndex. Example: parent is 14. Any children must end up being between 14 and 15 so they dont overflow on top of another composite.
public calculateLayerDepthForChild ( float zIndexMin, float zIndexMax, MainItemVO child, float zIndexMaxChild = 100 ) : float
zIndexMin float
zIndexMax float
child MainItemVO Child.
zIndexMaxChild float Z index max child.
리턴 float

프로퍼티 상세

composite 공개적으로 프로퍼티

public CompositeVO,Nez.Overlap2D.Runtime composite
리턴 CompositeVO

height 공개적으로 프로퍼티

public float height
리턴 float

scissorHeight 공개적으로 프로퍼티

public float scissorHeight
리턴 float

scissorWidth 공개적으로 프로퍼티

public float scissorWidth
리턴 float

scissorX 공개적으로 프로퍼티

public float scissorX
리턴 float

scissorY 공개적으로 프로퍼티

public float scissorY
리턴 float

width 공개적으로 프로퍼티

public float width
리턴 float