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
↓ 170 callers
Method
evaluate
* Evaluates the track. * @param time The time. * @param defaultValue A default value. * This param will be passed if `this.requiresDefa
cocos/animation/tracks/track.ts:531
↓ 169 callers
Method
stateCache
()
cocos/gfx/webgl/webgl-device.ts:103
↓ 168 callers
Method
has
* @en * Checks whether or not content exists by key. * * @zh * 通过 Key 判断是否存在对应的内容。 * * @param key @en The key. @zh 要查询的键
cocos/asset/asset-manager/cache.ts:65
↓ 167 callers
Function
cos
Returns the cosine in radians from a lookup table.
native/cocos/editor-support/spine/3.8/spine/MathUtil.h:70
↓ 167 callers
Method
destroy
* Destroys the {@link GPUBuffer}. * Note: It is valid to destroy a buffer multiple times. * Note: Since no further operations can be enqueued us
@types/webGPU.d.ts:2078
↓ 167 callers
Method
keys
* @zh 曲线可引用的所有时间轴。 * @en Frame keys referenced by curves. * @deprecated Since V3.3. Please reference to the track/channel/curve mechanism in
cocos/animation/animation-clip.ts:546
↓ 166 callers
Method
appendChild
(node)
platforms/native/builtin/jsb-adapter/Node.js:11
↓ 163 callers
Method
append
native/cocos/network/WebSocketServer.cpp:133
↓ 163 callers
Method
max
* @en Calculates the maximum values by elements of the vector and save the results to the out vector * @zh 逐元素向量最大值
cocos/core/math/vec4.ts:211
↓ 160 callers
Method
addChild
(name: string)
tests/animation/new-gen-anim/pose-graph/pose-nodes/utils/evaluation-mock.ts:33
↓ 160 callers
Function
find
* Searches the container for an element with 'key' as key and returns an iterator to it if found, * otherwise it returns an iterator to M
native/cocos/base/RefMap.h:190
↓ 158 callers
Method
destroy
()
cocos/2d/renderer/i-batcher.ts:52
↓ 158 callers
Method
remove
* @en * Removes the cached content by key. * * @zh * 通过 Key 移除对应的内容。 * * @param key @en The key. @zh 要移除的键值对中的键。 *
cocos/asset/asset-manager/cache.ts:76
↓ 152 callers
Method
createBuffer
* Creates a {@link GPUBuffer}. * @param descriptor - Description of the {@link GPUBuffer} to create.
@types/webGPU.d.ts:2452
↓ 151 callers
Function
dot
* @en Quaternion dot product (scalar product) * @zh 四元数点积(数量积) * @param a The first unit quaternion * @param b The second unit quaterni
native/cocos/math/Quaternion.h:387
↓ 151 callers
Method
empty
native/cocos/renderer/pipeline/custom/NativeRenderQueue.cpp:159
↓ 150 callers
Method
parse
native/cocos/network/Uri.cpp:132
↓ 150 callers
Method
substring
native/cocos/editor-support/spine/4.2/spine/SpineString.cpp:192
↓ 148 callers
Method
begin
Return iterator to beginning. */
native/cocos/base/RefMap.h:54
↓ 147 callers
Function
error
(...data: unknown[])
cocos/core/platform/debug.ts:91
↓ 147 callers
Function
lerp
(from: number, to: number, ratio: number)
cocos/core/math/utils.ts:105
↓ 145 callers
Function
max
(x: number, y: number)
cocos/core/math/bits.ts:85
↓ 145 callers
Function
sin
Returns the sine in radians from a lookup table.
native/cocos/editor-support/spine/3.8/spine/MathUtil.h:65
↓ 144 callers
Method
_getUITransformComp
* @mangle * @engineInternal
cocos/scene-graph/node.ts:2992
↓ 144 callers
Method
slice
native/cocos/core/ArrayBuffer.cpp:63
↓ 143 callers
Method
dispatchEvent
* @param event * @returns Whether dispatch to next event dispatcher
cocos/input/input.ts:49
↓ 143 callers
Method
thisObject
* @brief Gets the JavaScript `this` object wrapped in se::Object. * @return The JavaScript `this` object wrapped in se::Object. */
native/cocos/bindings/jswrapper/State.h:61
↓ 142 callers
Method
setValue
(value: T)
cocos/animation/tracks/track.ts:47
↓ 141 callers
Method
push
()
cocos/animation/core/pose-allocator.ts:36
↓ 140 callers
Method
fn
native/cocos/base/std/hash/hash.h:317
↓ 140 callers
Method
resize
native/cocos/renderer/gfx-base/GFXBuffer.cpp:74
↓ 137 callers
Method
request
* @deprecated since v3.4.0, please use BufferAccessor's request * @see [[BufferAccessor.request]]
cocos/2d/renderer/mesh-buffer.ts:318
↓ 136 callers
Method
set
native/cocos/math/Mat4.cpp:938
↓ 135 callers
Function
nativevalue_to_se
native/cocos/bindings/manual/jsb_conversions.h:1140
↓ 133 callers
Method
startsWith
native/cocos/editor-support/spine/4.2/spine/SpineString.cpp:220
↓ 132 callers
Method
addMotion
* Adds a motion state into this state machine. * @returns The newly created motion.
cocos/animation/marionette/animation-graph.ts:413
↓ 132 callers
Method
match
native/cocos/profiler/DebugRenderer.cpp:117
↓ 131 callers
Method
getNode
(uuid: string)
@types/editor-extends.d.ts:32
↓ 128 callers
Method
empty
native/cocos/base/ThreadPool.h:169
↓ 128 callers
Method
slice
* @en Slices a interval of the path. * @zh 分割指定区段上的路径。 * @param beginIndex Begin index to the segment. Default to 0. * @param endIndex
cocos/animation/tracks/track.ts:224
↓ 126 callers
Function
getPipelineSceneData
()
cocos/rendering/pipeline-scene-data-utils.ts:27
↓ 125 callers
Function
abs
native/cocos/editor-support/spine/3.8/spine/MathUtil.h:60
↓ 125 callers
Method
getAttribute
(name)
platforms/native/builtin/jsb-adapter/HTMLElement.js:25
↓ 124 callers
Method
empty
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:5755
↓ 124 callers
Function
toRadian
(a: number)
cocos/core/math/utils.ts:114
↓ 122 callers
Function
min
native/cocos/audio/android/AudioMixer.cpp:84
↓ 122 callers
Method
setObject
native/cocos/bindings/jswrapper/Value.cpp:373
↓ 119 callers
Method
subtract
* @en Element-wise vector subtraction and save the results to out vector object * @zh 逐元素向量减法
cocos/core/math/vec4.ts:139
↓ 117 callers
Method
getValue
()
cocos/animation/tracks/track.ts:49
↓ 116 callers
Function
property
( target?: Parameters<LegacyPropertyDecorator>[0] | PropertyType, propertyKey?: Parameters<LegacyPrope
cocos/core/data/decorators/property.ts:67
↓ 116 callers
Method
push
(command)
editor/inspector/contributions/asset-history/history-manager-base.js:8
↓ 115 callers
Method
destroy
* @en Destroy resources of PipelineRuntime * @zh 销毁PipelineRuntime所持资源 * @returns Success or not
cocos/rendering/custom/pipeline.ts:69
↓ 115 callers
Method
empty
native/cocos/platform/openharmony/WorkerMessageQueue.cpp:45
↓ 115 callers
Method
registerSystem
* @en Register a system. * @zh 注册一个系统。
cocos/game/director.ts:701
↓ 115 callers
Method
render
* @en Render contents of cameras * @zh 根据相机进行绘制 * @param cameras @en Camera list @zh 相机列表
cocos/rendering/custom/pipeline.ts:75
↓ 115 callers
Method
setPosition
(value: IVec3Like)
cocos/physics/spec/i-character-controller.ts:36
↓ 113 callers
Function
orient3d
native/cocos/gi/light-probe/predicates.cpp:2179
↓ 112 callers
Method
push
native/cocos/editor-support/TypedArrayPool.cpp:138
↓ 111 callers
Function
destroy
native/cocos/renderer/gfx-base/GFXDef-common.h:1577
↓ 110 callers
Method
lock
native/cocos/base/Locked.h:81
↓ 110 callers
Function
toUint
native/cocos/base/Utils.h:119
↓ 109 callers
Method
addRef
native/cocos/base/RefCounted.cpp:54
↓ 109 callers
Function
parseInt
native/cocos/base/csscolorparser.cpp:232
↓ 108 callers
Function
cb
(err?: Error | null)
cocos/asset/asset-manager/utilities.ts:207
↓ 108 callers
Method
type
()
cocos/ui/layout.ts:277
↓ 107 callers
Method
emit
(name: string, ...args: any)
@types/editor-extends.d.ts:34
↓ 107 callers
Function
jsvm_clear_last_error
native/cocos/bindings/jswrapper/jsvm-v8-backend/js_native_api_v8.h:256
↓ 106 callers
Function
range
* @en Time range of this track. * @zh 此轨道的时间范围。 * @returns The time range.
cocos/animation/tracks/track.ts:500
↓ 105 callers
Function
broadcast
native/cocos/core/event/EventBus.h:204
↓ 105 callers
Method
d
Return degree of the vertex
cocos/rendering/custom/graph.ts:258
↓ 105 callers
Method
multiply
* @en Element-wise vector multiplication and save the results to out vector object * @zh 逐元素向量乘法
cocos/core/math/vec4.ts:151
↓ 105 callers
Method
transformMat4
* @en Vector and fourth order matrix multiplication * @zh 向量与四维矩阵乘法
cocos/core/math/vec4.ts:444
↓ 104 callers
Method
cos
Returns the cosine in radians from a lookup table.
native/cocos/editor-support/spine/4.2/spine/MathUtil.cpp:80
↓ 104 callers
Method
unregisterSystem
(sys: System)
cocos/game/director.ts:708
↓ 103 callers
Function
assert
(condition: boolean, message?: string, ...optionalParams: StringSubstitution[])
cocos/core/platform/debug.ts:105
↓ 103 callers
Method
assignSorted
( times: Iterable<[number, RealKeyframeValueParameters]> | readonly number[], values?: readonl
cocos/core/curves/curve.ts:460
↓ 103 callers
Function
atan2
Returns atan2 in radians, faster but less accurate than Math.Atan2. Average error of 0.00231 radians (0.1323 degrees), largest error of 0.00488 radian
native/cocos/editor-support/spine/3.8/spine/MathUtil.h:86
↓ 102 callers
Method
clear
(value: ClearView[])
cocos/rendering/custom/render-graph.ts:1212
↓ 102 callers
Method
get_allocator
native/cocos/renderer/pipeline/custom/RenderGraphTypes.h:960
↓ 101 callers
Method
stringify
native/cocos/network/SocketIO.cpp:177
↓ 100 callers
Function
V8LocalValueFromJsValue
native/cocos/bindings/jswrapper/jsvm-v8-backend/js_native_api_v8.h:403
↓ 100 callers
Function
free
native/cocos/base/memory/MemoryHook.cpp:59
↓ 100 callers
Function
getItem
(key)
platforms/minigame/platforms/taobao/wrapper/builtin/localStorage.js:14
↓ 97 callers
Method
nativeThisObject
* @brief Gets void* pointer of `this` object's private data. * @return A void* pointer of `this` object's private data. */
native/cocos/bindings/jswrapper/State.h:45
↓ 97 callers
Function
warn
(...args: any)
cocos/core/platform/sys.ts:319
↓ 96 callers
Function
IsEqualF
native/tests/unit-test/src/utils.h:32
↓ 96 callers
Method
assign
native/cocos/core/DataView.cpp:69
↓ 96 callers
Method
traversalinit
native/cocos/gi/light-probe/tetgen.cpp:4363
↓ 95 callers
Function
Enum
(obj: T)
cocos/core/value-types/enum.ts:51
↓ 95 callers
Method
str
native/cocos/base/StringHandle.h:35
↓ 94 callers
Method
existsSync
(filePath: string)
scripts/native-pack-tool/source/utils.ts:350
↓ 94 callers
Method
toArray
* @en Converts the given vector to an array * @zh 向量转数组 * @param ofs Array Start Offset
cocos/core/math/vec4.ts:505
↓ 93 callers
Function
join
(...segments: string[])
cocos/core/utils/path.ts:40
↓ 93 callers
Method
sin
Returns the sine in radians from a lookup table.
native/cocos/editor-support/spine/4.2/spine/MathUtil.cpp:85
↓ 92 callers
Method
IsEmpty
native/cocos/bindings/jswrapper/v8/debugger/util-inl.h:77
↓ 92 callers
Method
getName
native/cocos/audio/android/Track.h:59
↓ 92 callers
Method
update
* @engineInternal * @en Update camera * @zh 更新相机 * @param camera @en Camera @zh 相机
cocos/rendering/custom/pipeline.ts:980
↓ 91 callers
Method
append
(self, func)
native/tools/bindings-generator/generator.py:1039
↓ 91 callers
Method
data
native/cocos/bindings/jswrapper/v8/Utils.cpp:251
↓ 91 callers
Function
type
* @en Get current type. * @zh 队列类型。
cocos/gfx/base/queue.ts:37
← previous
next →
101–200 of 39,311, ranked by callers