Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/galacean/engine
/ functions
Functions
8,347 in github.com/galacean/engine
⨍
Functions
8,347
◇
Types & classes
1,752
↓ 1,137 callers
Method
equals
* Determines whether the specified colors are equals. * @param left - The first color to compare * @param right - The second color to compare
packages/math/src/Color.ts:45
↓ 875 callers
Function
it
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 657 callers
Method
addComponent
* Add component based on the component type. * @param type - The type of the component * @param args - The arguments of the component * @retu
packages/core/src/Entity.ts:274
↓ 613 callers
Method
equal
(other: IBaseSymbol)
packages/shader-lab/src/common/IBaseSymbol.ts:6
↓ 480 callers
Method
set
* Set the value of this rectangle. * @param x - The x coordinate of the rectangle * @param y - The y coordinate of the rectangle * @param wid
packages/math/src/Rect.ts:87
↓ 471 callers
Method
push
* Push item to the array. * @param item - The item which want to be pushed
packages/core/src/utils/SafeLoopArray.ts:17
↓ 446 callers
Method
createChild
* Create child entity. * @param name - The child entity's name * @returns The child entity
packages/core/src/Entity.ts:455
↓ 393 callers
Method
then
( onfulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2
packages/core/src/asset/AssetPromise.ts:191
↓ 351 callers
Function
abort
(what)
packages/physics-physx/libs/physx.release.downgrade.js:46
↓ 349 callers
Function
abort
(what)
packages/physics-physx/libs/physx.release.js:9
↓ 348 callers
Function
R6
(a,b,c)
packages/physics-physx/libs/physx.release.downgrade.js:22
↓ 334 callers
Function
S6
(a,b,c)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 295 callers
Function
o6
(a)
packages/physics-physx/libs/physx.release.downgrade.js:32
↓ 283 callers
Method
getByName
(name: string, value?: string)
packages/core/src/shader/ShaderMacro.ts:31
↓ 278 callers
Method
getComponent
* Get component which match the type. * @param type - The type of the component * @returns The first component which match type
packages/core/src/Entity.ts:290
↓ 274 callers
Method
create
( nameOrShaderSource: string, vertexSourceOrShaderPassesOrSubShadersOrPlatformTarget?: ShaderLanguage
packages/core/src/shader/Shader.ts:82
↓ 252 callers
Method
set
* Set the element at the specified index. * @param index - The index of the element to be set * @param element - The element to be set
packages/core/src/utils/DisorderedArray.ts:59
↓ 225 callers
Method
createRootEntity
* Create root entity. * @param name - Entity name * @returns Entity
packages/core/src/Scene.ts:305
↓ 221 callers
Method
_create
(ident: string, returnType: BuiltinType, ...args: BuiltinType[])
packages/shader-lab/src/parser/builtin/functions.ts:55
↓ 207 callers
Method
get
(index: number)
packages/design/src/physics/ICollision.ts:17
↓ 187 callers
Function
o5
(a,b,c,d,e,f)
packages/physics-physx/libs/physx.release.downgrade.js:28
↓ 175 callers
Function
v
(w)
packages/physics-physx/libs/physx.release.downgrade.js:11
↓ 157 callers
Function
B
(y)
packages/physics-physx/libs/physx.release.downgrade.js:11
↓ 157 callers
Method
_update
* @internal
packages/xr/src/XRManagerExtended.ts:298
↓ 145 callers
Function
l
(m,n,o)
packages/physics-physx/libs/physx.release.downgrade.js:11
↓ 137 callers
Function
x
(w,y)
packages/physics-physx/libs/physx.release.downgrade.js:11
↓ 129 callers
Method
update
* Call on every frame to update pose of objects. * @param elapsedTime - Step time of update.
packages/design/src/physics/IPhysicsScene.ts:43
↓ 128 callers
Method
forEach
* Loop through all elements. * @param callbackFn - The callback function * @param swapFn - The swap function can process the element after the c
packages/core/src/utils/DisorderedArray.ts:107
↓ 126 callers
Function
$t
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:21
↓ 122 callers
Method
copyFrom
* @internal
packages/core/src/clone/ComponentCloner.ts:16
↓ 121 callers
Method
setPosition
* Set local position. * @param position - The local position
packages/design/src/physics/shape/IColliderShape.ts:18
↓ 120 callers
Method
addShape
* Add collider shape on collider. * @param shape - The collider shape attached
packages/design/src/physics/ICollider.ts:11
↓ 118 callers
Function
Tt
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:23
↓ 116 callers
Method
bind
()
packages/core/src/renderingHardwareInterface/IPlatformBuffer.ts:4
↓ 113 callers
Method
add
* Add item to the array. * @param index - The index of the array * @param item - The item which want to be added
packages/core/src/utils/SafeLoopArray.ts:27
↓ 110 callers
Method
copyFrom
* Copy from source object. * @returns This object
packages/math/src/ICopy.ts:9
↓ 109 callers
Method
setMaterial
* Set physics material on shape. * @param material - The physics material
packages/design/src/physics/shape/IColliderShape.ts:36
↓ 105 callers
Method
destroy
* Destroy physics scene.
packages/design/src/physics/IPhysics.ts:157
↓ 103 callers
Method
advance
()
packages/shader-lab/src/lalr/StateItem.ts:61
↓ 102 callers
Function
WT
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:18
↓ 101 callers
Function
C
()
packages/physics-physx/libs/physx.release.downgrade.js:11
↓ 97 callers
Function
ASTNodeDecorator
(nonTerminal: NoneTerminal)
packages/shader-lab/src/parser/AST.ts:16
↓ 97 callers
Method
createProductionWithOptions
( goal: NoneTerminal, options: GrammarSymbol[][], /** the ast node */ astTypePool?: ClearableO
packages/shader-lab/src/lalr/Utils.ts:24
↓ 96 callers
Method
add
* Determines the sum of two colors. * @param left - The first color to add * @param right - The second color to add * @param out - The sum of
packages/math/src/Color.ts:61
↓ 92 callers
Method
enableMacro
(macro: string | ShaderMacro, value?: string)
packages/core/src/shader/ShaderData.ts:504
↓ 88 callers
Method
set
(type: T, lexeme: string, arg?: ShaderRange | ShaderPosition)
packages/shader-lab/src/common/BaseToken.ts:16
↓ 87 callers
Method
max
* The upper angular limit (in degrees) of the joint.
packages/core/src/physics/joint/JointLimits.ts:21
↓ 86 callers
Method
setFloat
(property: string | ShaderProperty, value: number)
packages/core/src/shader/ShaderData.ts:72
↓ 86 callers
Function
yq
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 84 callers
Method
addChild
(indexOrChild: number | Entity, child?: Entity)
packages/core/src/Entity.ts:344
↓ 83 callers
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onRejected - The callback to execute when the Promise is rejected. * @retu
packages/core/src/asset/AssetPromise.ts:205
↓ 82 callers
Method
load
(item: LoadItem, resourceManager: ResourceManager)
packages/loader/src/KTXLoader.ts:16
↓ 81 callers
Method
resizeByClientSize
* Resize the rendering size according to the clientWidth and clientHeight of the canvas. * @param pixelRatio - Pixel ratio
packages/rhi-webgl/src/WebCanvas.ts:41
↓ 79 callers
Method
destroy
()
packages/core/src/renderingHardwareInterface/IPlatformBuffer.ts:17
↓ 79 callers
Method
enable
* Enable one macro in this macro collection. * @param macro - ShaderMacro
packages/core/src/shader/ShaderMacroCollection.ts:50
↓ 77 callers
Method
disableMacro
(macro: string | ShaderMacro)
packages/core/src/shader/ShaderData.ts:530
↓ 72 callers
Function
updateForE2E
(engine, deltaTime = 100, loopTime = 10)
e2e/case/.mockForE2E.ts:3
↓ 70 callers
Method
getFloat
(property: string | ShaderProperty)
packages/core/src/shader/ShaderData.ts:52
↓ 69 callers
Method
clone
* Clone and return object. * @returns Clone object
packages/math/src/IClone.ts:9
↓ 69 callers
Method
indexOf
* The index of the item. * @param item - The item which want to get the index * @returns Index of the item
packages/core/src/utils/SafeLoopArray.ts:57
↓ 69 callers
Function
initScreenshot
( engine: Engine, camera: Camera | Camera[], width: number = 1200, height: number = 800, flipY = fal
e2e/case/.mockForE2E.ts:20
↓ 68 callers
Function
qm
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 67 callers
Function
H5
(a)
packages/physics-physx/libs/physx.release.downgrade.js:27
↓ 67 callers
Method
getRootEntity
* Get root entity from index. * @param index - Index * @returns Entity
packages/core/src/Scene.ts:398
↓ 67 callers
Method
nextFloat32
()
packages/loader/src/resource-deserialize/utils/BufferReader.ts:62
↓ 65 callers
Method
map
* @returns index
packages/shader-lab/src/macroProcessor/sourceMap/index.ts:58
↓ 64 callers
Function
_5
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:29
↓ 60 callers
Method
_addReferCount
* @internal
packages/core/src/asset/IReferable.ts:9
↓ 60 callers
Method
min
* The lower angular limit (in degrees) of the joint.
packages/core/src/physics/joint/JointLimits.ts:38
↓ 60 callers
Method
setTexture
(property: string | ShaderProperty, value: Texture)
packages/core/src/shader/ShaderData.ts:412
↓ 59 callers
Method
lookAt
* Calculate a right-handed look-at matrix. * @param eye - The position of the viewer's eye * @param target - The camera look-at target * @par
packages/math/src/Matrix.ts:483
↓ 59 callers
Method
run
* Execution engine loop.
packages/core/src/Engine.ts:392
↓ 57 callers
Method
random
* Generate a number between 0 and 1. * @returns - A random number
packages/math/src/Rand.ts:37
↓ 55 callers
Function
FU
(a,b,c,d,e,f,g)
packages/physics-physx/libs/physx.release.downgrade.js:21
↓ 55 callers
Method
addKey
(timeOrKey: number | CurveKey, value?: number)
packages/core/src/particle/modules/ParticleCurve.ts:51
↓ 55 callers
Function
assert
(condition,text)
packages/physics-physx/libs/physx.release.js:9
↓ 54 callers
Function
assert
(condition,text)
packages/physics-physx/libs/physx.release.downgrade.js:46
↓ 54 callers
Method
normalize
* Normalize the normal vector of the specified plane. * @param p - The specified plane * @param out - A normalized version of the specified plan
packages/math/src/Plane.ts:14
↓ 53 callers
Function
f7
(a)
packages/physics-physx/libs/physx.release.downgrade.js:34
↓ 53 callers
Method
find
* Find a shader by name. * @param name - Name of the shader
packages/core/src/shader/Shader.ts:197
↓ 52 callers
Function
Z5
(a)
packages/physics-physx/libs/physx.release.downgrade.js:24
↓ 52 callers
Function
j7
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:33
↓ 51 callers
Function
T5
(a)
packages/physics-physx/libs/physx.release.downgrade.js:24
↓ 51 callers
Method
all
(values: [...T])
packages/core/src/asset/AssetPromise.ts:53
↓ 51 callers
Method
max
* Calculate a vector containing the largest components of the specified vectors. * @param left - The first vector * @param right - The second ve
packages/math/src/Vector2.ts:126
↓ 51 callers
Method
multiply
* Determines the product of two matrices. * @param left - The first matrix to multiply * @param right - The second matrix to multiply * @para
packages/math/src/Matrix.ts:43
↓ 51 callers
Method
play
(textRenderer: TextRenderer, text: string = "")
e2e/case/text-typed.ts:70
↓ 51 callers
Method
setFloatArray
(property: string | ShaderProperty, value: Float32Array)
packages/core/src/shader/ShaderData.ts:148
↓ 50 callers
Function
Pf
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:24
↓ 50 callers
Method
setRotation
* The rotation of the joint. * @param value The rotation of the joint.
packages/design/src/physics/joints/IJoint.ts:33
↓ 49 callers
Function
rg
(a,b,c)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 48 callers
Function
Dv
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 48 callers
Method
degreeToRadian
* Modify the specified d from degree to radian. * @param d - The specified d * @returns The radian value
packages/math/src/MathUtil.ts:57
↓ 48 callers
Method
raycast
* Casts a ray through the Scene and returns the first hit. * @param ray - The ray * @param distance - The max distance the ray should check *
packages/design/src/physics/IPhysicsScene.ts:53
↓ 46 callers
Function
Lw
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:25
↓ 46 callers
Method
replace
(match, slice)
packages/core/src/shaderlib/ShaderFactory.ts:38
↓ 45 callers
Method
applyForce
* Apply a force to the DynamicCollider. * @param force - The force make the collider move
packages/core/src/physics/DynamicCollider.ts:334
↓ 45 callers
Method
dispatch
* Dispatch the event with the specified event name. * @param event - Event name * @param data - Data * @returns - Whether the dispatching is
packages/core/src/base/EventDispatcher.ts:47
↓ 45 callers
Method
setPixelBuffer
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats. * @remark
packages/core/src/renderingHardwareInterface/IPlatformTexture2D.ts:17
↓ 44 callers
Function
EU
(a,b)
packages/physics-physx/libs/physx.release.downgrade.js:27
next →
1–100 of 8,347, ranked by callers