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
↓ 42 callers
Method
equals
* @en Check whether the two given vectors are approximately equivalent * @zh 排除浮点数误差的向量近似等价判断
cocos/core/math/vec4.ts:538
↓ 42 callers
Method
isInited
native/cocos/scene/Model.h:185
↓ 42 callers
Function
polar
(magnitude: number, thetaDeg: number)
tests/animation/new-gen-anim/blend-algorithms/blend-2d.test.ts:478
↓ 42 callers
Method
push
(transformIndex: number, transform: Transform)
cocos/animation/marionette/pose-graph/pose-nodes/modify-pose-base.ts:29
↓ 42 callers
Method
reserve
ContinuousContainer
native/cocos/renderer/pipeline/custom/RenderGraphTypes.cpp:157
↓ 42 callers
Method
round
* @en Calculates element-wise round results and save to the out vector * @zh 逐元素向量四舍五入取整
cocos/core/math/vec4.ts:223
↓ 41 callers
Method
addQueue
* @en Add render queue. * Every render queue has a hint type, such as NONE, OPAQUE, MASK or BLEND. * User should only add objects of this hi
cocos/rendering/custom/pipeline.ts:1514
↓ 41 callers
Function
createAnimationGraph
(params: AnimationGraphParams)
tests/animation/new-gen-anim/utils/factory.ts:16
↓ 41 callers
Method
getGFXTexture
* @en Gets the related GFX [[gfx.Texture]] resource. * @zh 获取渲染贴图的 GFX 资源。 * @returns @en Gfx Texture resource. @zh GFX 贴图资源。
cocos/2d/assets/sprite-frame.ts:778
↓ 41 callers
Method
gpuDeviceObject
native/cocos/renderer/gfx-wgpu/WGPUDevice.h:59
↓ 41 callers
Method
gpuTexture
()
cocos/gfx/webgl/webgl-texture.ts:33
↓ 41 callers
Method
length
native/cocos/core/geometry/Line.h:165
↓ 41 callers
Method
once
(type: PipelineEventType, callback: PipelineEventCallback, target?: any)
cocos/rendering/pipeline-event.ts:102
↓ 41 callers
Method
pop_back
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:5061
↓ 40 callers
Function
createAttribute
(name: AttributeName, format: Format, isNormalized = false, stream = 0, isInstanced = false, location = 0)
cocos/particle/renderer/particle-system-renderer-cpu.ts:89
↓ 40 callers
Function
formerlySerializedAs
(name: string)
cocos/core/data/decorators/serializable.ts:48
↓ 40 callers
Method
multiply
native/cocos/math/Vec3.cpp:197
↓ 40 callers
Method
removeChild
* @en Removes a child from the container. * @zh 移除节点中指定的子节点。 * @param child - The child node which will be removed.
cocos/scene-graph/node.ts:805
↓ 40 callers
Method
root
native/cocos/bindings/jswrapper/v8/Object.cpp:1089
↓ 40 callers
Method
visible
* @zh 地形块的可见性 * @en The visibility of the block
cocos/terrain/terrain.ts:780
↓ 39 callers
Method
basename
native/cocos/base/memory/CallStack.cpp:136
↓ 39 callers
Function
end
()
templates/wechatprogram/first-screen.js:231
↓ 39 callers
Method
erase
native/cocos/bindings/jswrapper/MappingUtils.cpp:74
↓ 39 callers
Function
findVertex
native/cocos/renderer/pipeline/custom/RenderGraphGraphs.h:2229
↓ 39 callers
Function
initialize
* @en The initialization process, user shouldn't use it in most case, only useful when need to generate render pipeline programmatically. * @zh 初
cocos/rendering/render-flow.ts:112
↓ 39 callers
Method
register
( type: string | Record<string, (file: any, options: Record<string, any>, onComplete: ((err: Error | n
cocos/asset/asset-manager/parser.ts:236
↓ 39 callers
Method
subarray
native/cocos/core/TypedArray.h:164
↓ 38 callers
Method
Length
native/cocos/platform/openharmony/napi/napi-inl.h:1874
↓ 38 callers
Method
getImpl
native/cocos/physics/physx/PhysXSharedBody.cpp:104
↓ 38 callers
Function
max
native/cocos/editor-support/spine/3.8/spine/MathUtil.h:54
↓ 37 callers
Method
GetSize
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:6164
↓ 37 callers
Method
_vSet
(x: number, y: number, distance = 0)
cocos/2d/assembler/graphics/webgl/graphics-assembler.ts:658
↓ 37 callers
Method
addText
native/cocos/profiler/DebugRenderer.cpp:291
↓ 37 callers
Function
cleanUpVectorOfPointers
native/cocos/editor-support/spine/4.2/spine/ContainerUtil.h:109
↓ 37 callers
Method
close
native/cocos/base/Log.cpp:101
↓ 37 callers
Function
cross
Calculates cross product of two points. @return float @since v2.1.4 */
native/cocos/math/Vec2.h:514
↓ 37 callers
Method
decRef
native/cocos/bindings/jswrapper/RefCounter.cpp:34
↓ 37 callers
Method
destroy
()
cocos/physics/spec/i-physics-world.ts:61
↓ 37 callers
Function
getDeviceAccessFlagsImpl
native/cocos/renderer/gfx-base/GFXBarrier.cpp:446
↓ 37 callers
Method
getWindow
native/cocos/scene/Camera.h:280
↓ 37 callers
Method
getWorldBounds
native/cocos/scene/Model.h:226
↓ 37 callers
Method
isTypedArray
native/cocos/bindings/jswrapper/v8/Object.cpp:635
↓ 37 callers
Function
now
* @en Get the current time in milliseconds. * @zh 获取当前时间(毫秒为单位)。
cocos/core/platform/sys.ts:346
↓ 37 callers
Function
size
The number of elements in the map. */
native/cocos/base/RefMap.h:121
↓ 37 callers
Method
writeToBlackboard
native/cocos/renderer/frame-graph/PassNodeBuilder.cpp:62
↓ 36 callers
Method
_markForUpdateRenderData
* An internal method that marks the render data of the current component as modified so that the render data is recalculated. * Adding this metho
cocos/2d/components/ui-mesh-renderer.ts:259
↓ 36 callers
Function
assert
(value, message)
native/tests/sebind-tests/data/main.js:4
↓ 36 callers
Method
debug
native/cocos/renderer/gfx-wgpu/WGPUDevice.cpp:482
↓ 36 callers
Function
format
native/cocos/base/UTF8.cpp:47
↓ 36 callers
Method
getScale
native/cocos/math/Mat4.cpp:693
↓ 36 callers
Function
isNotEqualF
native/cocos/math/Math.h:73
↓ 36 callers
Method
off
* @en * Removes the listeners previously registered with the same type, callback, target and or useCapture, * if only type is passed as para
templates/harmonyos-next/entry/src/main/ets/common/Eventify.ts:108
↓ 36 callers
Function
peg$fail
(expected)
scripts/native-pack-tool/xcode/lib/parser/pbxproj.js:396
↓ 36 callers
Method
setPassInput
(inputName: string, shaderName: string)
cocos/rendering/post-process/utils/pass-context.ts:234
↓ 36 callers
Function
sign
native/cocos/primitive/Cylinder.cpp:29
↓ 36 callers
Function
swap
Swap the values object1 and object2. */
native/cocos/base/RefVector.h:472
↓ 35 callers
Method
addTexture
* @en Add or update texture. * @zh 添加或更新外部的贴图。 * @param name @en Resource name @zh 资源名字 * @param type @en Type of the texture @zh 贴图的类型
cocos/rendering/custom/pipeline.ts:884
↓ 35 callers
Function
assertIsNonNullable
(expr: T, message?: string)
cocos/core/data/utils/asserts.ts:33
↓ 35 callers
Method
begin
native/tools/simulator/libsimulator/lib/protobuf-lite/google/protobuf/repeated_field.h:721
↓ 35 callers
Method
cbegin
Return const_iterator to beginning.*/
native/cocos/base/RefMap.h:64
↓ 35 callers
Function
cleanUpVectorOfPointers
native/cocos/editor-support/spine/3.8/spine/ContainerUtil.h:109
↓ 35 callers
Function
composeInputKeyInternally
(propertyName: string, elementIndex?: number)
tests/animation/new-gen-anim/pose-graph/utils/misc.ts:41
↓ 35 callers
Method
computeWorldVertices
native/cocos/editor-support/spine/4.2/spine/MeshAttachment.cpp:237
↓ 35 callers
Method
getRotation
native/cocos/math/Mat4.cpp:697
↓ 35 callers
Method
getSettings
()
native/cocos/platform/android/libcocosxr/src/com/cocos/lib/xr/CocosXRWebViewContainer.java:459
↓ 35 callers
Method
getUint32
native/cocos/core/DataView.cpp:102
↓ 35 callers
Method
handle
(asset: TAssetType)
editor/src/marionette/pose-graph/drag/registry.ts:57
↓ 35 callers
Method
isEnabled
* @en Get rendering debug view on / off state. * @zh 查询当前是否开启了渲染调试模式。 */
native/cocos/renderer/pipeline/DebugView.h:201
↓ 35 callers
Method
onEnable
* @en Called when this component becomes enabled and its node is active.<br/> * This is a lifecycle method. It may not be implemented in the supe
cocos/physics/spec/i-lifecycle.ts:90
↓ 35 callers
Method
push
* @en * Push an element to the end of the array. * @zh * 向数组末尾添加一个元素。 * @param item @en The item to be added. @zh 被添加到数组的元素。
cocos/core/memop/cached-array.ts:78
↓ 35 callers
Method
runOnUiThread
Runs the specified action on the UI thread. If the current thread is the UI thread, then the action is executed immediately. If the current thread is
native/cocos/platform/android/java/src/com/cocos/lib/GlobalObject.java:73
↓ 35 callers
Method
syncSceneToPhysics
()
cocos/physics-2d/spec/i-physics-world.ts:36
↓ 35 callers
Method
toBeAround
(expected: number, numDigits?: number)
tests/utils/matchers/value-type-asymmetric-matchers.ts:53
↓ 35 callers
Method
updateWorldTransform
* @en Update the world transform information if outdated * @zh 更新节点的世界变换信息
cocos/scene-graph/node.ts:2311
↓ 34 callers
Method
WriteNumber
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:8336
↓ 34 callers
Function
clamp
native/cocos/math/Utils.h:83
↓ 34 callers
Method
getInstance
()
native/cocos/platform/android/libcocosxr/src/com/cocos/lib/xr/CocosXRVideoManager.java:119
↓ 34 callers
Method
hasEventListener
* @zh 检查指定事件是否已注册回调。 * @en Checks whether there is correspond event listener registered on the given event. * @param type - Event type.
templates/harmonyos-next/entry/src/main/ets/common/Eventify.ts:46
↓ 34 callers
Method
isExactly
native/cocos/editor-support/spine/3.8/spine/RTTI.cpp:49
↓ 34 callers
Method
runCmd
(cmd: string, args: string[], slient: boolean, cwd?: string)
scripts/native-pack-tool/source/utils.ts:314
↓ 34 callers
Method
setFloat32
native/cocos/core/DataView.cpp:179
↓ 34 callers
Method
setNull
native/cocos/bindings/jswrapper/Value.cpp:295
↓ 34 callers
Method
setRadius
(value: number)
cocos/physics/spec/i-character-controller.ts:47
↓ 34 callers
Method
trim
native/cocos/editor-support/spine/3.8/spine/Atlas.cpp:236
↓ 33 callers
Method
GetAllocationCallbacks
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:7794
↓ 33 callers
Function
add
native/cocos/editor-support/spine/3.8/spine/Vector.h:108
↓ 33 callers
Function
callObjectVoidMethod
native/cocos/platform/java/jni/JniHelper.h:121
↓ 33 callers
Function
checkExtension
native/cocos/renderer/gfx-gles2/GLES2Device.h:80
↓ 33 callers
Method
create
* @en * Create a new task from pool. * * @zh * 从对象池中创建 task。 * * @param options @en Some optional parameters. @zh 一些可选参数
cocos/asset/asset-manager/task.ts:73
↓ 33 callers
Function
createPool
(Constructor: new() => T)
cocos/rendering/custom/render-graph.ts:1530
↓ 33 callers
Function
f
(e)
templates/web-mobile/vconsole.min.js:10
↓ 33 callers
Method
fastRemoveAt
(i: number)
cocos/core/utils/array.ts:78
↓ 33 callers
Method
getPrivateData
native/cocos/bindings/jswrapper/jsvm/Object.cpp:590
↓ 33 callers
Method
getTypedID
native/cocos/renderer/gfx-base/GFXObject.h:38
↓ 33 callers
Method
parse
* @en * Use corresponding handler to parse file. * * @zh * 使用对应的 handler 来解析文件。 * * @param id @en The id of file. @zh 文件
cocos/asset/asset-manager/parser.ts:271
↓ 33 callers
Method
pushDefaultedPose
()
cocos/animation/marionette/animation-graph-context.ts:779
↓ 33 callers
Function
remove
native/cocos/base/Utils.h:320
↓ 33 callers
Method
scaleAndAdd
* @en Element-wise multiplication and addition with the equation: a + b * scale * @zh 逐元素向量乘加: A + B * scale
cocos/core/math/vec4.ts:247
↓ 33 callers
Method
setFrame
native/cocos/editor-support/spine/4.2/spine/EventTimeline.cpp:94
↓ 33 callers
Function
sevalue_to_native
native/cocos/renderer/pipeline/custom/details/JsbConversion.h:70
← previous
next →
401–500 of 39,311, ranked by callers