Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cocos/cocos4
/ functions
Functions
39,311 in github.com/cocos/cocos4
⨍
Functions
39,311
◇
Types & classes
10,059
↓ 7 callers
Method
drain
Raises all events in the queue and drains the queue.
native/cocos/editor-support/spine/4.2/spine/AnimationState.cpp:270
↓ 7 callers
Method
emit
* @deprecated Since V1.1.1, animation states were no longer defined as event targets. * To process animation events, use `Animation` instead.
cocos/animation/animation-state.ts:410
↓ 7 callers
Method
encode
native/cocos/gi/light-probe/tetgen.h:2537
↓ 7 callers
Function
equals
(p1: Aim, p2: Aim)
cocos/2d/assembler/graphics/webgl/earcut.ts:530
↓ 7 callers
Function
equals
native/cocos/math/Utils.h:50
↓ 7 callers
Method
equals
(a: ReadonlyTransform, b: ReadonlyTransform, epsilon?: number)
cocos/animation/core/transform.ts:69
↓ 7 callers
Method
evaluateFast
* @en Interpolate color and alpha from color and alpha keys. * @zh 根据颜色列表插值计算颜色和透明度。 * @param out @en Interpolated color value. @zh 插值过后的颜色值
cocos/core/curves/gradient.ts:153
↓ 7 callers
Method
extractMipmap0
* @en extract the first mipmap from a compressed image asset * @engineInternal * @mangle
cocos/asset/assets/image-asset.ts:493
↓ 7 callers
Method
extractMipmap0
native/cocos/core/assets/ImageAsset.cpp:68
↓ 7 callers
Method
extractMipmaps
* @en extract mipmaps from a compressed image asset * @engineInternal * @mangle
cocos/asset/assets/image-asset.ts:519
↓ 7 callers
Method
extractMipmaps
native/cocos/core/assets/ImageAsset.cpp:82
↓ 7 callers
Function
f
(e)
templates/fb-instant-games/vconsole.min.js:10
↓ 7 callers
Method
fastSet
native/cocos/base/Data.cpp:98
↓ 7 callers
Method
fill
native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp:273
↓ 7 callers
Method
fillRect
* @en * Draws a filled rectangle. * * @zh * 绘制填充矩形。 * * @param x @en The x-axis coordinate of the top left point of the
cocos/2d/components/graphics.ts:531
↓ 7 callers
Function
forEach
(array: T[], process: ForEachFunction<T>, onComplete: (errs: Error[]) => void)
cocos/asset/asset-manager/utilities.ts:200
↓ 7 callers
Function
formatString
* Constructs a string from a sequence of js object arguments.
cocos/core/platform/debug.ts:56
↓ 7 callers
Function
freezeVec4
(x: number, y: number, z: number, w: number)
cocos/core/math/vec4.ts:46
↓ 7 callers
Function
generateHierarchyFixture
( leafNodeIds = [ '1.1', '1.2.1.1', '1.2.2', '2.1', ], )
tests/animation/new-gen-anim/utils/hierarchy-fixture.ts:26
↓ 7 callers
Method
generate_code
(self)
native/tools/bindings-generator/generator.py:1978
↓ 7 callers
Method
getAngularVelocity
(out: IVec3Like)
cocos/physics/spec/i-rigid-body.ts:61
↓ 7 callers
Method
getB
native/cocos/editor-support/spine/4.2/spine/Bone.cpp:447
↓ 7 callers
Method
getBlendMode
native/cocos/editor-support/spine/3.8/spine/SlotData.cpp:84
↓ 7 callers
Method
getBool
native/cocos/platform/interfaces/modules/XRCommon.h:163
↓ 7 callers
Method
getBoundary
* @en * Gets the bounding points of this OBB instance. * @zh * 获取此 OBB 的最小点和最大点。 * @param minPos @zh 此 OBB 的最小点。 @en The out minim
cocos/core/geometry/obb.ts:285
↓ 7 callers
Method
getClearDepth
native/cocos/scene/Camera.h:329
↓ 7 callers
Method
getClearStencil
native/cocos/scene/Camera.h:332
↓ 7 callers
Method
getConstantInfo
(lg: LayoutGraphData, data: RenderData, name: string)
cocos/rendering/custom/web-pipeline-types.ts:558
↓ 7 callers
Method
getConstantValue
(final Class aClass, final String constantName)
native/cocos/platform/android/java/src/com/cocos/lib/CocosReflectionHelper.java:34
↓ 7 callers
Function
getContext
NAPI Interface
native/cocos/platform/openharmony/napi/NapiHelper.cpp:353
↓ 7 callers
Method
getCount
native/cocos/renderer/pipeline/GeometryRenderer.cpp:103
↓ 7 callers
Method
getCurrentClipStatuses
(layer: number)
cocos/animation/marionette/graph-eval.ts:169
↓ 7 callers
Method
getD
native/cocos/editor-support/spine/4.2/spine/Bone.cpp:463
↓ 7 callers
Method
getDelegate
native/cocos/network/WebSocket-okhttp.cpp:337
↓ 7 callers
Method
getDeps
* @en * Gets asset's direct referencing dependency list. For example, Material's dependencies are Texture, effect asset etc. * Note: You wil
cocos/asset/asset-manager/depend-util.ts:118
↓ 7 callers
Function
getDescriptorGroupBlockData
(map: Map<string, DescriptorBlockData>, index: DescriptorGroupBlockIndex)
cocos/rendering/custom/layout-graph-utils.ts:289
↓ 7 callers
Method
getElement
(idx: number)
cocos/particle/renderer/trail.ts:86
↓ 7 callers
Method
getEntries
native/cocos/editor-support/spine/3.8/spine/Skin.cpp:92
↓ 7 callers
Method
getEnvmap
native/cocos/scene/Skybox.cpp:148
↓ 7 callers
Method
getFrameSize
native/tools/simulator/libsimulator/lib/ProjectConfig/ProjectConfig.cpp:164
↓ 7 callers
Method
getHash
* @en Gets the hash of its texture. * @zh 贴图资源的哈希值。 * @returns @en Texture`s hash. @zh 贴图哈希值。
cocos/2d/assets/sprite-frame.ts:796
↓ 7 callers
Method
getHeight
native/cocos/core/assets/ImageAsset.cpp:117
↓ 7 callers
Method
getInstancedBuffer
(extraKey = 0)
cocos/render-scene/core/pass.ts:373
↓ 7 callers
Method
getInstancedBuffer
native/cocos/scene/Pass.cpp:289
↓ 7 callers
Method
getLayers
* @en Return All layers array. * @zh 返回包含所有 layer 的数组。 * @method getLayers * @returns {TiledLayer[]} * @example * let layers
cocos/tiledmap/tiled-map.ts:242
↓ 7 callers
Function
getLeadingMargin
(node, axis)
platforms/minigame/openDataContext/engine.js:1261
↓ 7 callers
Method
getLength
native/cocos/editor-support/spine/4.2/spine/BoneData.cpp:68
↓ 7 callers
Method
getLinearVelocity
(out: IVec3Like)
cocos/physics/spec/i-rigid-body.ts:59
↓ 7 callers
Method
getLocalSetLayout
native/cocos/scene/Pass.cpp:885
↓ 7 callers
Method
getMacroBool
* @en Get macro as boolean. * @zh 根据宏名获得布尔值 * @param name @en Name of macro @zh 宏的名字 * @returns Boolean value
cocos/rendering/custom/pipeline.ts:163
↓ 7 callers
Method
getMeshBuffer
native/cocos/2d/renderer/Batcher2d.cpp:149
↓ 7 callers
Method
getMilliseconds
native/cocos/base/Timer.cpp:50
↓ 7 callers
Method
getNextStateStatus
(layer: number)
cocos/animation/marionette/graph-eval.ts:181
↓ 7 callers
Method
getNumDrawCalls
native/cocos/renderer/gfx-wgpu/WGPUQueue.h:44
↓ 7 callers
Method
getNumInstances
native/cocos/renderer/gfx-wgpu/WGPUQueue.h:45
↓ 7 callers
Method
getNumTris
native/cocos/renderer/gfx-wgpu/WGPUQueue.h:46
↓ 7 callers
Method
getParentLayout
()
cocos/rendering/custom/web-pipeline-types.ts:633
↓ 7 callers
Method
getPipelineRenderData
()
cocos/rendering/deferred/deferred-pipeline.ts:136
↓ 7 callers
Function
getPrivate
native/cocos/bindings/jswrapper/v8/Utils.cpp:222
↓ 7 callers
Method
getRenderMaterial
* @en Get the actual rendering material of the specified sub-model. * (material instance if there is one, or the shared material asset) * @z
cocos/misc/renderer.ts:249
↓ 7 callers
Method
getSampler
native/cocos/renderer/pipeline/deferred/ReflectionComp.h:73
↓ 7 callers
Method
getScheduler
* @en Returns the scheduler associated with this director. * @zh 获取和 director 相关联的调度器。
cocos/game/director.ts:681
↓ 7 callers
Method
getSharedMaterial
* @en Get the shared material asset of the specified sub-model. * @zh 获取指定子模型的共享材质资源。
cocos/misc/renderer.ts:163
↓ 7 callers
Method
getSlot
native/cocos/editor-support/dragonbones/armature/Armature.cpp:368
↓ 7 callers
Method
getStatus
()
cocos/animation/marionette/state-machine/state-machine-eval.ts:1346
↓ 7 callers
Function
getTypedArrayConstructor
(info: FormatInfo)
cocos/gfx/base/define.ts:2447
↓ 7 callers
Method
getUrl
native/cocos/audio/android/PcmAudioPlayer.h:46
↓ 7 callers
Function
getUserDataPath
()
platforms/runtime/common/engine/fs-utils.js:38
↓ 7 callers
Method
getWidth
native/cocos/core/assets/ImageAsset.cpp:113
↓ 7 callers
Method
getWrapperPtrWithObjectID
native/cocos/physics/physx/PhysXWorld.cpp:610
↓ 7 callers
Method
getWritablePath
native/cocos/platform/qnx/FileUtils-qnx.cpp:111
↓ 7 callers
Method
getX
native/cocos/core/geometry/Plane.h:132
↓ 7 callers
Method
getY
native/cocos/core/geometry/Plane.h:134
↓ 7 callers
Method
get_iter
native/cocos/renderer/pipeline/custom/details/GraphTypes.h:213
↓ 7 callers
Function
get_namespaced_class_name
(declaration_cursor)
native/tools/bindings-generator/generator.py:382
↓ 7 callers
Method
gpuBufferView
()
cocos/gfx/webgl/webgl-buffer.ts:44
↓ 7 callers
Method
gpuSampler
native/cocos/renderer/gfx-wgpu/WGPUSampler.h:41
↓ 7 callers
Function
groupByMagnitude
(mapper: (mag: number) => T, ...magnitudes: (number | readonly [mag: number, title: string])[])
tests/animation/new-gen-anim/blend-algorithms/blend-2d.test.ts:483
↓ 7 callers
Method
hitTest
* @zh 屏幕空间中的点击测试。 * @en Hit test with point in Screen Space. * * @param screenPoint @en point in Screen Space. @zh 屏幕坐标中的点。
cocos/2d/framework/ui-transform.ts:460
↓ 7 callers
Function
indexQuantized
(quantized: QuantizedFloatArray, index: number)
cocos/animation/exotic-animation/exotic-animation.ts:948
↓ 7 callers
Function
inheritCCClass
(ctor: Constructor, parentCtor: Constructor)
cocos/core/math/math-native-ext.ts:69
↓ 7 callers
Method
insertChild
* @en Inserts a child to the node at a specified index. * @zh 插入子节点到指定位置 * @param child - the child node to be inserted * @param siblin
cocos/scene-graph/node.ts:638
↓ 7 callers
Method
instanceOf
native/cocos/editor-support/spine/3.8/spine/RTTI.cpp:53
↓ 7 callers
Method
isAwake
()
cocos/physics/cannon/cannon-rigid-body.ts:42
↓ 7 callers
Method
isCulledByLod
native/cocos/scene/RenderScene.cpp:154
↓ 7 callers
Method
isDiscardedByReset
native/cocos/bindings/manual/jsb_xmlhttprequest.cpp:165
↓ 7 callers
Method
isInCleanup
* @brief Tests whether script engine is being cleaned up. * @return true if it's in cleaning up, otherwise false. */
native/cocos/bindings/jswrapper/v8/ScriptEngine.h:259
↓ 7 callers
Method
isInvalid
()
cocos/spine/skeleton-cache.ts:281
↓ 7 callers
Method
isInvalidPosition
(x: number, y: number)
cocos/tiledmap/tiled-layer.ts:566
↓ 7 callers
Method
isNode
* @en Determine whether the given object is a normal Node. Will return false if [[Scene]] given. * @zh 指定对象是否是普通的节点?如果传入 [[Scene]] 会返回 false。
cocos/scene-graph/node.ts:1666
↓ 7 callers
Function
isRowDirection
(flexDirection)
platforms/minigame/openDataContext/engine.js:1251
↓ 7 callers
Function
isSkeletonDataValid
(skeletonData: SkeletonData | null)
cocos/spine/skeleton.ts:50
↓ 7 callers
Function
jsToSeValue
native/cocos/bindings/jswrapper/jsvm/Utils.cpp:35
↓ 7 callers
Function
jsToSeValue
native/cocos/bindings/jswrapper/sm/Utils.cpp:129
↓ 7 callers
Method
lerp
(t: number, a: number, b: number)
cocos/particle/noise.ts:119
↓ 7 callers
Method
lerp
(prevIndex: number, nextIndex: number, ratio: number, prevValue: TValue, nextV
cocos/animation/exotic-animation/exotic-animation.ts:198
↓ 7 callers
Method
loadDir
( dir: string, type?: Constructor<T> | ((finished: number, total: number, item: RequestItem) =
cocos/asset/asset-manager/bundle.ts:362
↓ 7 callers
Function
longComment
(file)
scripts/native-pack-tool/xcode/lib/pbxProject.js:1662
↓ 7 callers
Method
makeCurrent
native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp:293
↓ 7 callers
Function
mapFindB
native/cocos/editor-support/dragonbones/core/DragonBones.h:354
← previous
next →
1,901–2,000 of 39,311, ranked by callers