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
↓ 58 callers
Function
o
(n)
templates/web-mobile/vconsole.min.js:10
↓ 58 callers
Method
returnToPool
native/cocos/editor-support/dragonbones/core/BaseObject.cpp:115
↓ 57 callers
Method
Env
native/cocos/platform/openharmony/napi/napi-inl.h:459
↓ 57 callers
Method
GetString
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:7662
↓ 57 callers
Function
createAnimationGraphEval
(animationGraph: AnimationGraph | AnimationGraphVariant, node: Node)
tests/animation/newgenanim.test.ts:5596
↓ 57 callers
Method
isolate
native/cocos/bindings/jswrapper/v8/debugger/env.h:321
↓ 57 callers
Method
lerp
* 在当前曲线值与目标曲线值之间插值。 * @param to 目标曲线值。 * @param t 插值比率。 * @param dt 当前曲线值与目标曲线值的时间间隔,单位为秒。 * @returns 插值结果。
cocos/animation/types.ts:104
↓ 57 callers
Method
querySettings
* @zh * 查询配置模块中具体分组中的具体配置值。 * * @en * Query specific configuration values in specific category in the settings module. *
cocos/core/settings.ts:172
↓ 56 callers
Method
clearException
native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp:945
↓ 56 callers
Function
cocos2BulletVec3
(out: Bullet.ptr, v: IVec3Like)
cocos/physics/bullet/bullet-utils.ts:31
↓ 56 callers
Function
expectAnimationGraphEvalStatusLayer0
(graphEval: AnimationGraphEval, status: LayerStatusExpectation)
tests/animation/newgenanim.test.ts:5531
↓ 56 callers
Method
fullPathForFilename
native/cocos/platform/FileUtils.cpp:660
↓ 56 callers
Function
init
native/cocos/platform/mac/KeyCodeHelper.cpp:171
↓ 55 callers
Function
__webpack_require__
(moduleId)
platforms/minigame/openDataContext/engine.js:7
↓ 55 callers
Method
addRenderPass
* @en Add render pass * @zh 添加渲染通道 * @param width @en Width of the render pass @zh 渲染通道的宽度 * @param height @en Height of the render pas
cocos/rendering/custom/pipeline.ts:1611
↓ 55 callers
Method
addVariable
* Adds a variable into this graph. * @param name The variable's name. * @param type The variable's type. * @param initialValue Initial
cocos/animation/marionette/animation-graph.ts:941
↓ 55 callers
Method
getFormatFeatures
native/cocos/renderer/gfx-wgpu/WGPUDevice.h:114
↓ 55 callers
Method
getWidth
native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h:297
↓ 55 callers
Method
resize
native/cocos/base/Data.cpp:104
↓ 55 callers
Function
to_string
native/cocos/editor-support/dragonbones/core/DragonBones.h:330
↓ 54 callers
Method
bind
(context: AnimationGraphBindingContext)
tests/animation/new-gen-anim/pose-graph/utils/misc.ts:76
↓ 54 callers
Method
getPipelineSceneData
native/cocos/core/Root.cpp:222
↓ 54 callers
Function
locate
native/cocos/renderer/pipeline/custom/LayoutGraphGraphs.h:1060
↓ 54 callers
Method
removeAttribute
(attrName)
platforms/native/builtin/jsb-adapter/Element.js:29
↓ 54 callers
Function
set_member_field
native/cocos/bindings/manual/jsb_conversions_spec.cpp:72
↓ 53 callers
Method
bindTexture
* @en Bind a GFX [[gfx.Texture]] the given uniform binding * @zh 绑定实际 GFX [[gfx.Texture]] 到指定 binding。 * @param binding The binding for targ
cocos/render-scene/core/pass.ts:320
↓ 53 callers
Method
hasFeature
(feature: Feature)
pal/system-info/web/system-info.ts:355
↓ 53 callers
Method
max
native/cocos/math/Vec3.cpp:374
↓ 53 callers
Function
onComplete
()
cocos/tween/tween-progress.ts:78
↓ 52 callers
Method
addRegisterCallback
native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp:572
↓ 52 callers
Method
bind
(listener: TrackEntryListeners)
cocos/spine/skeleton-cache.ts:257
↓ 52 callers
Function
formatSize
native/cocos/renderer/gfx-base/GFXDef.cpp:412
↓ 52 callers
Method
normalize
* @en Sets the normalized vector to the out vector, returns a zero vector if input is a zero vector. * @zh 归一化向量,输入零向量将会返回零向量。
cocos/core/math/vec4.ts:368
↓ 52 callers
Function
parseFloat
native/cocos/base/csscolorparser.cpp:228
↓ 52 callers
Method
querySelector
(query)
platforms/native/builtin/jsb-adapter/document.js:77
↓ 52 callers
Method
readFile
native/cocos/network/HttpCookie.cpp:32
↓ 52 callers
Method
removeEventListener
* @en Remove the event listener for the DragonBones Event. * @zh 移除 DragonBones 事件监听器。 * @method removeEventListener * @param eventType
cocos/dragon-bones/ArmatureDisplay.ts:1443
↓ 52 callers
Function
toColor
native/cocos/editor-support/spine/4.2/spine/SkeletonJson.cpp:79
↓ 52 callers
Method
transformQuat
* @en Vector quaternion multiplication * @zh 向量四元数乘法
cocos/core/math/vec4.ts:477
↓ 51 callers
Method
findIndex
* @ignore * @param optKey * @param t
cocos/core/geometry/curve.ts:317
↓ 51 callers
Method
getScene
native/cocos/scene/Model.h:230
↓ 51 callers
Method
setContentSize
(size: Size | number, height?: number)
cocos/2d/framework/ui-transform.ts:320
↓ 50 callers
Method
Get
native/cocos/bindings/jswrapper/jsvm-v8-backend/js_native_api_v8.cc:1334
↓ 50 callers
Method
GetRecorder
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:7833
↓ 50 callers
Method
IsString
native/cocos/platform/openharmony/napi/napi-inl.h:668
↓ 50 callers
Method
attr
* @en * Properties configuration function. * All properties in attrs will be set to the node, * when the setter of the node is availabl
cocos/scene-graph/node.ts:464
↓ 50 callers
Method
contains
(key: Key)
cocos/rendering/custom/graph.ts:445
↓ 50 callers
Method
create
* @en * Creates a new ray. * @zh * 创建一条射线。 * @param {number} ox @en The x component of start point. @zh 起点的 x 部分。 * @param {n
cocos/core/geometry/ray.ts:50
↓ 50 callers
Method
createMotion
(context: CreateMotionContext)
tests/animation/new-gen-anim/utils/fixtures.ts:26
↓ 50 callers
Function
getError
(errorId: number, ...param: StringSubstitution[])
cocos/core/platform/debug.ts:362
↓ 50 callers
Method
next
()
cocos/rendering/custom/graph.ts:189
↓ 50 callers
Method
setString
native/cocos/bindings/jswrapper/Value.cpp:354
↓ 49 callers
Method
exit
native/cocos/platform/UniversalPlatform.cpp:82
↓ 49 callers
Method
getHeight
native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h:298
↓ 49 callers
Method
getWorldScale
* @en Get scale in world coordinate system, please try to pass `out` vector and reuse it to avoid garbage. * @zh 获取世界缩放,注意,尽可能传递复用的 [[Vec3]] 以避免产
cocos/scene-graph/node.ts:2826
↓ 49 callers
Method
isUndefined
* @brief Tests whether se::Value stores an undefined value. * @return true if se::Value stores an undefined value, otherwise false. */
native/cocos/bindings/jswrapper/Value.h:451
↓ 49 callers
Method
normalize
native/cocos/math/Vec3.cpp:350
↓ 48 callers
Method
ceil
* @en Rounds up by elements of the vector and save the results to out vector object * @zh 逐元素向量向上取整
cocos/core/math/vec4.ts:175
↓ 48 callers
Method
isValid
static */
native/cocos/engine/Engine.cpp:118
↓ 48 callers
Method
runSceneImmediate
* @en * Run a scene. Replaces the running scene with a new one or enter the first scene.<br> * The new scene will be launched immediately.
cocos/game/director.ts:394
↓ 47 callers
Method
getContext
( contextId: | 'webgpu' )
@types/webGPU.d.ts:17
↓ 47 callers
Method
getFormat
native/cocos/core/assets/ImageAsset.cpp:121
↓ 47 callers
Method
isNumber
* @brief Tests whether se::Value stores a number. * @return true if se::Value stores a number, otherwise false. */
native/cocos/bindings/jswrapper/Value.h:421
↓ 47 callers
Function
logID
(id: number, ...optionalParams: StringSubstitution[])
cocos/core/platform/debug.ts:275
↓ 47 callers
Function
parent
AddressableGraph
native/cocos/renderer/pipeline/custom/RenderGraphGraphs.h:379
↓ 47 callers
Method
set
(callback: AnyFunction, target?: unknown, once?: boolean)
templates/harmonyos-next/entry/src/main/ets/common/CallbacksInvoker.ts:64
↓ 47 callers
Method
set
native/cocos/editor-support/spine-wasm/spine-model.h:10
↓ 47 callers
Method
setScale
* @en * Scales this OBB by a 3d-vector and store the result to the `out` parameter. * @zh * 根据 3D 向量对此 OBB 的数据进行缩放并将结果存储在 out 参数中。
cocos/core/geometry/obb.ts:335
↓ 47 callers
Method
strictEquals
* @en Check the equality of the two given vectors * @zh 向量等价判断
cocos/core/math/vec4.ts:530
↓ 46 callers
Method
Size
native/cocos/math/Geometry.cpp:40
↓ 46 callers
Method
addRenderTarget
* @en Add or update 2D render target. * @zh 添加或更新2D渲染目标 * @param name @en Resource name @zh 资源名字 * @param format @en Format of the reso
cocos/rendering/custom/pipeline.ts:775
↓ 46 callers
Method
begin
native/cocos/editor-support/spine/3.8/spine/VertexEffect.cpp:47
↓ 46 callers
Method
insert
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:6016
↓ 46 callers
Method
release
native/cocos/base/RefCounted.cpp:58
↓ 46 callers
Method
s
()
cocos/rendering/custom/archive.ts:40
↓ 46 callers
Method
set
native/cocos/core/geometry/Ray.cpp:52
↓ 45 callers
Method
disable
native/cocos/scene/ReflectionProbe.cpp:213
↓ 45 callers
Method
emit
* @zh 派发一个指定事件,并传递需要的参数 * @en Trigger an event directly with the event name and necessary arguments. * @param type - event type * @para
templates/harmonyos-next/entry/src/main/ets/common/Eventify.ts:135
↓ 45 callers
Function
overrideDefineArrayProp
(prototype: any, getPropVector: any, name: string)
cocos/spine/lib/spine-define.ts:38
↓ 44 callers
Method
channels
* @en The width channel and the height channel of the track. * @zh 返回此轨道的宽度通道和高度通道。 * @returns An readonly array in which * the first e
cocos/animation/tracks/size-track.ts:57
↓ 44 callers
Function
decode
(body)
platforms/native/builtin/jsb-adapter/fetch.js:342
↓ 44 callers
Method
getData
Getters
native/cocos/platform/Image.h:77
↓ 44 callers
Method
getDescriptorSet
native/cocos/renderer/pipeline/deferred/ReflectionComp.h:59
↓ 44 callers
Method
getDescriptorSet
native/cocos/renderer/pipeline/custom/NativePipeline.cpp:1287
↓ 44 callers
Method
getWorldRotation
* @en Get rotation as quaternion in world coordinate system, please try to pass `out` quaternion and reuse it to avoid garbage. * @zh 获取世界坐标系下的旋转
cocos/scene-graph/node.ts:2725
↓ 44 callers
Function
isEqualF
native/cocos/math/Math.h:68
↓ 44 callers
Function
random
()
cocos/core/math/utils.ts:130
↓ 44 callers
Method
unroot
native/cocos/bindings/jswrapper/v8/Object.cpp:1096
↓ 43 callers
Method
addVertex
(...args)
cocos/rendering/custom/graph.ts:339
↓ 43 callers
Function
alignTo
native/cocos/base/Utils.h:111
↓ 43 callers
Function
approx
(a: number, b: number, maxDiff?: number)
cocos/core/math/utils.ts:67
↓ 43 callers
Function
debug
(...data: unknown[])
cocos/core/platform/debug.ts:114
↓ 43 callers
Method
fromEuler
* @en Calculates the quaternion with Euler angles, the rotation order is YZX, first rotate around Y, then around Z, and finally around X. * @zh 根
cocos/core/math/quat.ts:557
↓ 43 callers
Method
getCreateMotionContext
()
tests/animation/new-gen-anim/utils/single-real-value-observer.ts:28
↓ 43 callers
Method
lastIndexOf
native/cocos/editor-support/spine/4.2/spine/SpineString.cpp:213
↓ 43 callers
Function
registerInterface
* @brief Registration system interface. */
native/cocos/platform/BasePlatform.h:135
↓ 43 callers
Method
reverse
(otherTweenOrId?: Tween<U> | number, id?: number)
cocos/tween/tween.ts:202
↓ 43 callers
Method
set
* @en * Sets the components of a ray to the given values. * @zh * 将给定射线的属性设置为给定的值。 * @param out @en The Ray object to be modified
cocos/core/geometry/ray.ts:119
↓ 43 callers
Method
updateWorldTransform
native/cocos/core/scene-graph/Node.cpp:474
↓ 42 callers
Function
ceilDiv
native/cocos/renderer/gfx-base/GFXDef.cpp:410
← previous
next →
301–400 of 39,311, ranked by callers