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
↓ 91 callers
Method
write
native/cocos/renderer/gfx-base/GFXBuffer.cpp:84
↓ 90 callers
Method
getWorldMatrix
* @en Get a world transform matrix * @zh 获取世界变换矩阵 * @param out Set the result to out matrix * @return If `out` given, the return value
cocos/scene-graph/node.ts:2840
↓ 90 callers
Method
multiplyScalar
* @en Vector scalar multiplication and save the results to out vector object * @zh 向量标量乘法
cocos/core/math/vec4.ts:235
↓ 90 callers
Method
to
* @en * Add an action which calculates with absolute value. * @zh * 添加一个对属性进行绝对值计算的 action。 * @method to * @param duration @e
cocos/tween/tween.ts:475
↓ 89 callers
Function
createFormatInfo
( name: string, size?: number, count?: number, type?: FormatType, hasAlpha?: boolean,
cocos/gfx/base/define.ts:2097
↓ 89 callers
Method
fill
* @en * Fills the current or given path with the current fill style. * * @zh * 根据当前的画线样式,填充当前或已经存在的路径。
cocos/2d/components/graphics.ts:604
↓ 89 callers
Function
setTimeout
native/cocos/network/HttpRequest.h:241
↓ 88 callers
Method
insert
native/cocos/base/UTF8.cpp:360
↓ 88 callers
Function
malloc
Use strong symbol to overwrite the weak one.
native/cocos/base/memory/MemoryHook.cpp:45
↓ 88 callers
Method
values
* @en * Returns an iterator to keyframe values. * @zh * 返回关键帧值的迭代器。
cocos/core/curves/keyframe-curve.ts:123
↓ 87 callers
Method
context
native/cocos/bindings/jswrapper/jsvm-v8-backend/js_native_api_v8.h:121
↓ 87 callers
Method
count
* @en * The count of cached content. * * @zh * 缓存数量。 *
cocos/asset/asset-manager/cache.ts:326
↓ 87 callers
Method
getSize
native/cocos/base/Data.cpp:84
↓ 87 callers
Method
getVertexList
native/cocos/renderer/pipeline/custom/RenderGraphTypes.h:1074
↓ 87 callers
Method
transformMat4
native/cocos/math/Vec3.cpp:260
↓ 86 callers
Method
by
* @en * Add an action which calculates with relative value. * @zh * 添加一个对属性进行相对值计算的 action。 * @method by * @param duration @e
cocos/tween/tween.ts:496
↓ 86 callers
Method
filter
native/cocos/bindings/jswrapper/MappingUtils.h:142
↓ 86 callers
Method
isNullOrUndefined
* @brief Tests whether se::Value stores a null or an undefined value. * @return true if se::Value stores a null or an undefined value, otherwis
native/cocos/bindings/jswrapper/Value.h:463
↓ 86 callers
Method
on
* @en * Register an callback of a specific event type on the EventTarget. * This type of event should be triggered via `emit`. * @zh
templates/harmonyos-next/entry/src/main/ets/common/Eventify.ts:66
↓ 86 callers
Method
reserve
native/cocos/core/memop/CachedArray.h:97
↓ 85 callers
Method
addLayer
* @en add layer * @zh 添加纹理层
cocos/terrain/terrain.ts:1777
↓ 85 callers
Method
assign
* @en Reset the struct and data of the mesh * @zh 重置此网格的结构和数据。 * @param struct @en The new struct @zh 新结构 * @param data @en The new dat
cocos/3d/assets/mesh.ts:717
↓ 85 callers
Method
min
* @en Calculates the minimum values by elements of the vector and save the results to the out vector * @zh 逐元素向量最小值
cocos/core/math/vec4.ts:199
↓ 85 callers
Method
resolve
(value: ResolvePass)
cocos/rendering/custom/render-graph.ts:1204
↓ 83 callers
Method
setArrayElement
native/cocos/bindings/jswrapper/v8/Object.cpp:891
↓ 81 callers
Method
resize
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:5010
↓ 81 callers
Method
setProperty
* @en * Convenient property setter provided for quick material setup.<br> * [[renderer.Pass.setUniform]] should be used instead if you need
cocos/asset/assets/material.ts:303
↓ 80 callers
Method
bindBuffer
* @en Bind buffer for all descriptorSets, so that all created descriptorSet buffer are consistent * @zh 为所有的 descriptorSet 绑定 buffer,使得所有已创建的 des
cocos/rendering/global-descriptor-set-manager.ts:108
↓ 80 callers
Method
getPipelineSceneData
native/cocos/renderer/pipeline/custom/NativePipeline.cpp:1530
↓ 80 callers
Function
log
(message?: any, ...optionalParams: any[])
tests/test.log.ts:3
↓ 80 callers
Method
now
()
pal/system-info/web/system-info.ts:377
↓ 79 callers
Method
enable
()
cocos/particle/particle.ts:147
↓ 79 callers
Method
getColor
native/cocos/editor-support/dragonbones/model/ArmatureData.h:485
↓ 78 callers
Method
concat
* @en * Add all elements of a given array to the end of the current array. * @zh * 添加一个指定数组中的所有元素到当前数组末尾。 * @param array @en The g
cocos/core/memop/cached-array.ts:158
↓ 78 callers
Function
getActor
native/cocos/base/Agent.h:50
↓ 78 callers
Method
once
* @en * Register an callback of a specific event type on the EventTarget, * the callback will remove itself after the first time it is trigg
templates/harmonyos-next/entry/src/main/ets/common/Eventify.ts:85
↓ 78 callers
Method
push
native/cocos/renderer/gfx-validator/ValidationUtils.h:145
↓ 77 callers
Function
JsValueFromV8LocalValue
native/cocos/bindings/jswrapper/jsvm-v8-backend/js_native_api_v8.h:399
↓ 77 callers
Method
getPosition
(out: IVec3Like)
cocos/physics/spec/i-character-controller.ts:35
↓ 77 callers
Method
getWorldPosition
* @en Get position in world coordinate system, please try to pass `out` vector and reuse it to avoid garbage. * @zh 获取世界坐标,注意,尽可能传递复用的 [[Vec3]] 以
cocos/scene-graph/node.ts:2660
↓ 77 callers
Method
setVec4
* @en Set vector4 uniform which consists of 4 floats (16 bytes). * @zh 设置vector4向量,常量(uniform)有4个float (16 bytes) * @param name @en uniform
cocos/rendering/custom/pipeline.ts:316
↓ 76 callers
Method
Class
native/cocos/bindings/jswrapper/v8/Class.cpp:64
↓ 74 callers
Function
clamp
(val: number, min: number, max: number)
cocos/core/math/utils.ts:79
↓ 73 callers
Method
call
native/cocos/bindings/jswrapper/v8/Object.cpp:777
↓ 73 callers
Function
callback
(err)
platforms/nodejs/engine/cache-manager.js:116
↓ 73 callers
Method
invert
* @en Inverts a matrix. When matrix is not invertible the matrix will be set to zeros. * @zh 矩阵求逆,注意,在矩阵不可逆时,会返回一个全为 0 的矩阵。
cocos/core/math/mat3.ts:144
↓ 72 callers
Method
activate
* @en Activate PipelineRuntime with default swapchain * @zh 用默认交换链初始化PipelineRuntime * @param swapchain @en Default swapchain @zh 默认的交换链
cocos/rendering/custom/pipeline.ts:63
↓ 72 callers
Method
approxEquals
native/cocos/math/Mat4.cpp:1039
↓ 72 callers
Method
getCapabilities
native/cocos/renderer/pipeline/custom/NativePipeline.cpp:130
↓ 72 callers
Function
isInited
native/cocos/renderer/gfx-validator/QueueValidator.h:42
↓ 71 callers
Function
func
(event)
platforms/native/builtin/jsb_input.js:12
↓ 70 callers
Method
cend
Return const_iterator to end.*/
native/cocos/base/RefMap.h:66
↓ 70 callers
Method
createTexture
* Creates a {@link GPUTexture}. * @param descriptor - Description of the {@link GPUTexture} to create.
@types/webGPU.d.ts:2459
↓ 70 callers
Method
sort
* @en Sort the current queue * @zh 排序渲染队列。
cocos/rendering/render-queue.ts:114
↓ 69 callers
Function
Value
native/cocos/platform/openharmony/napi/napi-inl.h:1366
↓ 69 callers
Method
getPipeline
* @zh * 渲染管线 */
native/cocos/core/Root.h:229
↓ 69 callers
Function
input
(options: PoseGraphNodeInputMappingOptions)
cocos/animation/marionette/pose-graph/decorator/input.ts:41
↓ 69 callers
Method
put
(x: vertex_descriptor, value: T)
cocos/rendering/custom/graph.ts:355
↓ 69 callers
Method
setUndefined
native/cocos/bindings/jswrapper/Value.cpp:291
↓ 69 callers
Method
transform
(m: Mat4 | Readonly<Mat4>, pos: IVec3Like, rot: IQuatLike, scale: IVec3Like, out: IBuiltinShape)
cocos/physics/cocos/builtin-interface.ts:32
↓ 68 callers
Function
apply
native/cocos/editor-support/spine/3.8/spine/MathUtil.h:138
↓ 68 callers
Method
isAnimationCached
* @en Whether in cached mode. * @zh 当前是否处于缓存模式。
cocos/spine/skeleton.ts:1379
↓ 68 callers
Method
pop
* @en * Pop the last element in the array. The [[length]] will reduce, but the internal array will keep its size. * @zh * 弹出数组最后一个元素,Ca
cocos/core/memop/cached-array.ts:90
↓ 67 callers
Method
Set
native/cocos/platform/openharmony/napi/napi-inl.h:1516
↓ 67 callers
Method
WriteString
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:8260
↓ 67 callers
Function
ccenum
(enumType: EnumT)
cocos/core/value-types/enum.ts:205
↓ 67 callers
Method
setProperty
native/cocos/core/assets/Material.cpp:126
↓ 66 callers
Function
At
(i: number, vertices: IVec2Like[])
cocos/physics-2d/framework/utils/polygon-separator.ts:42
↓ 66 callers
Method
bindDescriptorSet
native/cocos/renderer/gfx-base/GFXCommandBuffer.h:153
↓ 66 callers
Method
readByte
(input: DataInput)
cocos/spine/lib/spine-binary.ts:52
↓ 66 callers
Method
trim
()
cocos/2d/components/sprite.ts:375
↓ 65 callers
Method
addNode
native/cocos/gi/light-probe/LightProbe.cpp:232
↓ 65 callers
Method
delete
(key: string)
cocos/2d/utils/text-utils.ts:152
↓ 65 callers
Method
draw
* Draws primitives. * See [[#rendering-operations]] for the detailed specification. * @param vertexCount - The number of vertices to draw. *
@types/webGPU.d.ts:1818
↓ 64 callers
Method
getScene
* @en Returns current logic Scene. * @zh 获取当前逻辑场景。 * @example * ``` * import { director } from 'cc'; * // This will help you
cocos/game/director.ts:630
↓ 64 callers
Method
isFunction
native/cocos/bindings/jswrapper/v8/Object.cpp:621
↓ 64 callers
Method
onDestroy
* @en Called when this component will be destroyed.<br/> * This is a lifecycle method. It may not be implemented in the super class.<br/> *
cocos/physics/spec/i-lifecycle.ts:108
↓ 63 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/framework/ui-renderer.ts:431
↓ 63 callers
Method
getExpected
(time: number)
tests/animation/new-gen-anim/utils/fixtures.ts:24
↓ 63 callers
Method
getLayout
(v: number)
cocos/rendering/custom/render-graph.ts:1405
↓ 63 callers
Method
info
()
cocos/terrain/terrain.ts:1540
↓ 62 callers
Function
callStaticVoidMethod
native/cocos/platform/java/jni/JniHelper.h:207
↓ 62 callers
Method
isString
* @brief Tests whether se::Value stores a string. * @return true if se::Value stores a string, otherwise false. */
native/cocos/bindings/jswrapper/Value.h:433
↓ 61 callers
Method
addLine
(v0: Vec3, v1: Vec3, color: Color, depthTest = true)
cocos/rendering/geometry-renderer.ts:312
↓ 61 callers
Method
getSystemInfoSync
* Most mini game platforms have performance issues calling this interface, so the engine does caching internally. * This interface is depreca
@types/pal/minigame.d.ts:19
↓ 61 callers
Method
length
native/cocos/editor-support/spine-wasm/Vector2.cpp:38
↓ 61 callers
Function
reset
native/cocos/editor-support/IOBuffer.h:140
↓ 61 callers
Function
setVec4Impl
native/cocos/renderer/pipeline/custom/NativeUtils.cpp:91
↓ 61 callers
Method
sqrt
native/cocos/editor-support/spine/4.2/spine/MathUtil.cpp:89
↓ 60 callers
Method
bindDescriptorSet
(set: number, descriptorSet: DescriptorSet, dynamicOffsets?: Readonly<number[]>)
cocos/gfx/webgl/webgl-command-buffer.ts:113
↓ 60 callers
Method
resize
native/cocos/editor-support/IOBuffer.cpp:27
↓ 60 callers
Method
resource
native/cocos/renderer/pipeline/custom/RenderGraphTypes.h:1010
↓ 60 callers
Method
set
(x: number, y: number, z: number, w: number)
cocos/gfx/base/define.ts:1029
↓ 58 callers
Method
addEventListener
* Add a given listener to this event target. * @param {string} eventName The event name to add. * @param {Function} listener The listener to
platforms/native/builtin/jsb-adapter/EventTarget.js:128
↓ 58 callers
Function
create
native/cocos/renderer/GFXDeviceManager.h:75
↓ 58 callers
Method
free
(handle: IHandle<P>)
cocos/render-scene/core/memory-pools.ts:37
↓ 58 callers
Method
getParent
(v: vertex_descriptor)
cocos/rendering/custom/graph.ts:411
↓ 58 callers
Method
isHDR
* @en Is open HDR. * @zh 是否开启 HDR。 * @readonly
cocos/rendering/pipeline-scene-data.ts:51
↓ 58 callers
Method
load
native/cocos/core/assets/Font.cpp:96
↓ 58 callers
Function
o
(n)
templates/fb-instant-games/vconsole.min.js:10
← previous
next →
201–300 of 39,311, ranked by callers