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
↓ 21 callers
Method
IsJust
native/cocos/platform/openharmony/napi/napi-inl.h:399
↓ 21 callers
Method
_doLayoutDirty
()
cocos/ui/layout.ts:1153
↓ 21 callers
Method
addEmpty
* Adds an empty state into this state machine. * @returns The newly created empty state.
cocos/animation/marionette/animation-graph.ts:429
↓ 21 callers
Method
addSubStateMachine
* Adds a sub state machine into this state machine. * @returns The newly created state machine.
cocos/animation/marionette/animation-graph.ts:421
↓ 21 callers
Function
binarySearch
(array: number[], value: number)
cocos/core/algorithm/binary-search.ts:35
↓ 21 callers
Method
dot
native/cocos/math/Vec3.cpp:342
↓ 21 callers
Function
find
(path: string, referenceNode?: Node)
cocos/scene-graph/find.ts:40
↓ 21 callers
Function
free
native/cocos/editor-support/spine/4.2/spine/Pool.h:63
↓ 21 callers
Method
getBone
native/cocos/editor-support/spine/4.2/spine/PhysicsConstraint.cpp:81
↓ 21 callers
Method
getFloat32
native/cocos/core/DataView.cpp:130
↓ 21 callers
Method
getFramebuffer
native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h:296
↓ 21 callers
Method
getSampler
(v: number)
cocos/rendering/custom/render-graph.ts:816
↓ 21 callers
Method
getScaleX
* @en Returns scale factor of the horizontal direction (X axis). * @zh 返回横轴的缩放比,这个缩放比是将画布像素分辨率放到设计分辨率的比例。
cocos/ui/view.ts:536
↓ 21 callers
Method
getWindow
native/cocos/platform/java/modules/SystemWindowManager.cpp:53
↓ 21 callers
Method
nt2lm
native/cocos/scene/Light.cpp:43
↓ 21 callers
Method
parse
(atlasFile)
editor/inspector/assets/texture/parse-atlas.js:102
↓ 21 callers
Method
preventDefault
native/cocos/core/event/EventTarget.h:56
↓ 21 callers
Method
random
* @en Generates a uniformly distributed random vector points from center to the surface of the unit sphere * @zh 生成一个在单位球体上均匀分布的随机向量 * @para
cocos/core/math/vec4.ts:426
↓ 21 callers
Method
setGroup
(v: number)
cocos/physics/spec/i-group-mask.ts:26
↓ 21 callers
Method
stroke
()
cocos/particle-2d/motion-streak-2d.ts:129
↓ 21 callers
Method
toBeCloseToVec3
(expected: Readonly<Vec3>, numDigits?: number)
tests/utils/matchers/value-type-asymmetric-matchers.ts:54
↓ 21 callers
Function
toDegree
(a: number)
cocos/core/math/utils.ts:123
↓ 21 callers
Method
toInt
native/cocos/editor-support/spine/4.2/spine/Atlas.cpp:173
↓ 21 callers
Function
transform
(input: string | string[] | Record<string, any> | Array<Record<string, any>>, options?: Record<string, any> |
cocos/asset/asset-manager/helper.ts:129
↓ 21 callers
Method
vertex
(key: Key)
cocos/rendering/custom/graph.ts:446
↓ 21 callers
Method
w
Returns the zero-based index of the alternative held by the vertex
cocos/rendering/custom/graph.ts:389
↓ 21 callers
Method
writeProperty
* Writes a property into output. * @param name Property name. * @param value Property value.
cocos/core/data/custom-serializable.ts:64
↓ 20 callers
Method
Add
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:8112
↓ 20 callers
Function
OneByteString
native/cocos/bindings/jswrapper/v8/debugger/util-inl.h:207
↓ 20 callers
Method
ThrowAsJavaScriptException
we created an object on the &_ref
native/cocos/platform/openharmony/napi/napi-inl.h:3067
↓ 20 callers
Method
_assign
* @en * internal methods. * @zh * 设置射线,此方法由引擎内部使用,请勿在外部脚本调用。 * * @deprecated since v3.5.0, this is an engine private interfac
cocos/physics/framework/physics-ray-result.ts:106
↓ 20 callers
Function
_interopRequireDefault
(obj)
platforms/minigame/platforms/xiaomi/wrapper/builtin.js:57
↓ 20 callers
Method
_wakeUpIfSleep
()
cocos/physics/cannon/cannon-rigid-body.ts:321
↓ 20 callers
Method
addDescriptor
(block: DescriptorBlock, name: string, type = Type.UNKNOWN)
cocos/rendering/custom/layout-graph-editor.ts:625
↓ 20 callers
Method
alloc
native/cocos/renderer/gfx-gles-common/GLESCommandPool.h:106
↓ 20 callers
Method
alloc
native/cocos/gi/light-probe/tetgen.cpp:4290
↓ 20 callers
Method
begin
native/cocos/profiler/Profiler.cpp:56
↓ 20 callers
Function
ccclassAutoNamed
(fileName: string)
tests/core/serialization/shared/utils.ts:19
↓ 20 callers
Function
changeBasename
native/cocos/core/utils/Path.cpp:146
↓ 20 callers
Function
clamp01
(val: number)
cocos/core/math/utils.ts:94
↓ 20 callers
Function
clear
* All the elements in the Map<K,V> container are dropped: * their reference count will be decreased, and they are removed from the container,
native/cocos/base/RefMap.h:257
↓ 20 callers
Method
computeHash
(info: Readonly<SamplerInfo>)
cocos/gfx/base/states/sampler.ts:46
↓ 20 callers
Method
createPipelineLayout
* Creates a {@link GPUPipelineLayout}. * @param descriptor - Description of the {@link GPUPipelineLayout} to create.
@types/webGPU.d.ts:2487
↓ 20 callers
Function
getCameraUniqueID
(camera: Camera)
cocos/rendering/custom/define.ts:125
↓ 20 callers
Method
getCurrentTransition
(layer: number)
cocos/animation/marionette/graph-eval.ts:173
↓ 20 callers
Method
getKeyframeValue
* @en * Gets the value of specified keyframe. * @zh * 获取指定关键帧上的值。 * @param index Index to the keyframe. * @returns The keyfra
cocos/core/curves/keyframe-curve.ts:147
↓ 20 callers
Function
getRandomDouble
()
tests/core/test-serialize-node.js:13
↓ 20 callers
Method
getScaleY
* @en Returns scale factor of the vertical direction (Y axis). * @zh 返回纵轴的缩放比,这个缩放比是将画布像素分辨率缩放到设计分辨率的比例。
cocos/ui/view.ts:544
↓ 20 callers
Method
getSwapchain
* @en Get the swapchain for this window, if there is one * @zh 如果存在的话,获取此窗口的交换链 */
native/cocos/scene/RenderWindow.h:113
↓ 20 callers
Method
gpuBuffer
native/cocos/renderer/gfx-metal/MTLBuffer.h:55
↓ 20 callers
Method
index
()
platforms/native/engine/jsb-videoplayer-openharmony.js:70
↓ 20 callers
Method
install
native/cocos/bindings/sebind/class_v8.h:136
↓ 20 callers
Function
instantiate
(importObject: WebAssembly.Imports)
cocos/3d/misc/mesh-codec.ts:61
↓ 20 callers
Function
normalizePath
(path)
scripts/build-adapter.js:102
↓ 20 callers
Function
poseGraphNodeAppearance
( appearance: Readonly<PoseGraphNodeAppearanceOptions>, )
cocos/animation/marionette/pose-graph/decorator/node.ts:41
↓ 20 callers
Method
read
native/cocos/renderer/frame-graph/PassNode.cpp:41
↓ 20 callers
Method
resume
* @en Resume the game from pause. This will resume:<br> * game logic execution, rendering process, event manager, background music and all audio
cocos/game/game.ts:603
↓ 20 callers
Method
runOnGameThreadAtForeground
(final Runnable runnable)
native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java:167
↓ 20 callers
Function
s
(e)
templates/fb-instant-games/vconsole.min.js:10
↓ 20 callers
Function
s
(e)
templates/web-mobile/vconsole.min.js:10
↓ 20 callers
Method
setCenter
native/cocos/core/geometry/AABB.h:147
↓ 20 callers
Method
setTexture
* @en Set texture descriptor. * Type of the texture should match the one in shader. * Texture should be in read states and satisfy shader st
cocos/rendering/custom/pipeline.ts:361
↓ 20 callers
Method
setUniform
* @en Sets a vector type uniform value, if a uniform requires frequent update, please use this method. * @zh 设置指定普通向量类 uniform 的值,如果需要频繁更新请尽量使用此接
cocos/render-scene/core/pass.ts:268
↓ 20 callers
Method
slotName
(camera: Camera, index = 0)
cocos/rendering/post-process/passes/taa-pass.ts:115
↓ 20 callers
Method
times
* @en * Returns an iterator to keyframe times. * @zh * 返回关键帧时间的迭代器。
cocos/core/curves/keyframe-curve.ts:113
↓ 20 callers
Function
toRadian
native/cocos/math/Utils.h:124
↓ 20 callers
Method
tryCompile
* @en Try to compile the shader and retrieve related resources references. * @zh 尝试编译 shader 并获取相关资源引用。
cocos/render-scene/core/pass.ts:497
↓ 20 callers
Method
v
Return vertex iterator
cocos/rendering/custom/graph.ts:319
↓ 19 callers
Method
GetBlock
native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h:7058
↓ 19 callers
Method
Value
native/cocos/bindings/jswrapper/Value.cpp:66
↓ 19 callers
Method
_deferredDestroy
()
cocos/core/data/object.ts:173
↓ 19 callers
Method
_getWebXRGamepadMap
()
pal/input/web/gamepad-input.ts:455
↓ 19 callers
Function
basename
native/cocos/core/utils/Path.cpp:91
↓ 19 callers
Function
beginRecording
(uuids, options)
editor/inspector/contributions/node.js:61
↓ 19 callers
Method
bindSampler
native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp:84
↓ 19 callers
Function
block
(name, fn)
native/tests/sebind-tests/data/main.js:11
↓ 19 callers
Method
callPreviewFunction
(funcName, ...args)
editor/inspector/utils/preview.js:141
↓ 19 callers
Method
createDescriptorSet
native/cocos/renderer/gfx-base/GFXDevice.h:293
↓ 19 callers
Function
createEmptyClipMotion
(duration: number, name = '')
tests/animation/newgenanim.test.ts:5411
↓ 19 callers
Function
deepCopy
(target: T[], source: T[], Ctor: Constructor<T>)
cocos/gfx/base/define.ts:39
↓ 19 callers
Method
delay
* @en * Add a delay action. * @zh * 添加一个延时 action。 * @method delay * @param duration @en Delay time of this tween @zh 当前缓动的延迟
cocos/tween/tween.ts:555
↓ 19 callers
Method
destroy
* Destroys this binding.
cocos/animation/marionette/animation-graph-animation-clip-binding.ts:66
↓ 19 callers
Method
disable
()
cocos/web-view/web-view-impl-web.ts:110
↓ 19 callers
Method
emit
* @en * Trigger an event directly with the event name and necessary arguments. * @zh * 通过事件名发送自定义事件 * @param type - event type
cocos/scene-graph/node.ts:1322
↓ 19 callers
Function
endRecording
(undoID, cancel)
editor/inspector/contributions/node.js:67
↓ 19 callers
Method
evaluateAt
(time: number, iterations: number)
tests/animation/embedded-player/util.ts:60
↓ 19 callers
Method
getBuffer
(handle: IHandle<P>)
cocos/render-scene/core/memory-pools.ts:146
↓ 19 callers
Method
getData
native/cocos/editor-support/spine-wasm/spine-model.cpp:53
↓ 19 callers
Method
getDataFromFile
native/cocos/platform/FileUtils.cpp:557
↓ 19 callers
Method
getDepthStencilTexture
native/cocos/renderer/pipeline/custom/NativeResourceGraph.cpp:55
↓ 19 callers
Method
getDesc
(v: number)
cocos/rendering/custom/render-graph.ts:807
↓ 19 callers
Method
getGFXSampler
* @en Gets the GFX sampler of its texture. * @zh 贴图资源的采样器。 * @returns @en The GFX sampler resource. @zh GFX贴图采样器。
cocos/2d/assets/sprite-frame.ts:787
↓ 19 callers
Method
getMaterialInstance
* @en Get the material instance of the specified sub-model. * It will create a new instance from the corresponding shared material if not created
cocos/misc/renderer.ts:196
↓ 19 callers
Method
getPass
native/cocos/renderer/pipeline/InstancedBuffer.h:75
↓ 19 callers
Method
getPassID
(name: string)
cocos/rendering/custom/pipeline.ts:1753
↓ 19 callers
Method
getSampler
native/cocos/renderer/gfx-base/GFXDevice.cpp:100
↓ 19 callers
Function
getTempTransform
(pos: IVec3Like, quat: IQuatLike)
cocos/physics/physx/physx-adapter.ts:213
↓ 19 callers
Method
getUint8
native/cocos/core/DataView.cpp:88
↓ 19 callers
Method
get_allocator
native/cocos/renderer/pipeline/custom/details/GraphTypes.h:485
↓ 19 callers
Method
invalidateChildren
* @en Invalidate the world transform information * for this node and all its children recursively * @zh 递归标记节点世界变换为 dirty * @param dirt
cocos/scene-graph/node.ts:2279
← previous
next →
701–800 of 39,311, ranked by callers