Skip to content

Commit

Permalink
add light probe group help (#15797)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyljl authored Jul 21, 2023
1 parent 3ca7d08 commit 72db332
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
8 changes: 1 addition & 7 deletions cocos/core/math/vec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,10 @@ export class Vec2 extends ValueType {
* @override (a:Vec2, b:Vec2) => number
* @override [deprecated] (out:Vec3, a:Vec2, b:Vec2) => Vec3
*/
/**
* @deprecated since v3.8.0, There is no physical meaning.
*/
public static cross (a: IVec2Like, b: IVec2Like): number;

/**
* @deprecated since v3.8.0, There is no physical meaning.
* @deprecated Consider use another overrides please.
*/
public static cross <Out extends IVec2Like> (out: Vec3, a: Out, b: Out): Vec3;

Expand Down Expand Up @@ -719,9 +716,6 @@ export class Vec2 extends ValueType {
* @param other specified vector
* @return `out`
*/
/**
* @deprecated since v3.8.0, There is no physical meaning.
*/
public cross (other: Vec2): number {
return this.x * other.y - this.y * other.x;
}
Expand Down
2 changes: 2 additions & 0 deletions cocos/gi/light-probe/light-probe-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
displayName,
editable,
executeInEditMode,
help,
menu,
range,
serializable,
Expand All @@ -46,6 +47,7 @@ import { AutoPlacement, PlaceMethod } from './auto-placement';
* @zh 光照探针组组件。
*/
@ccclass('cc.LightProbeGroup')
@help('i18n:cc.LightProbeGroup')
@menu('Rendering/LightProbeGroup')
@disallowMultiple
@executeInEditMode
Expand Down
1 change: 1 addition & 0 deletions editor/i18n/en/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = link(mixin({
DirectionalLight: `${url}/${version}/manual/en/concepts/scene/light/lightType/dir-light.html`,
SphereLight: `${url}/${version}/manual/en/concepts/scene/light/lightType/sphere-light.html`,
SpotLight: `${url}/${version}/manual/en/concepts/scene/light/lightType/spot-light.html`,
LightProbeGroup: `${url}/${version}/manual/en/concepts/scene/light/probe/light-probe.html`,
UICoordinateTracker: `${url}/${version}/manual/en/ui-system/components/editor/ui-coordinate-tracker.html`,
Animation: `${url}/${version}/manual/en/animation/animation-component.html`,
SkeletalAnimation: `${url}/${version}/manual/en/animation/skeletal-animation.html`,
Expand Down
1 change: 1 addition & 0 deletions editor/i18n/zh/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = link(mixin({
DirectionalLight: `${url}/${version}/manual/zh/concepts/scene/light/lightType/dir-light.html`,
SphereLight: `${url}/${version}/manual/zh/concepts/scene/light/lightType/sphere-light.html`,
SpotLight: `${url}/${version}/manual/zh/concepts/scene/light/lightType/spot-light.html`,
LightProbeGroup: `${url}/${version}/manual/zh/concepts/scene/light/probe/light-probe.html`,
UICoordinateTracker: `${url}/${version}/manual/zh/ui-system/components/editor/ui-coordinate-tracker.html`,
Animation: `${url}/${version}/manual/zh/animation/animation-component.html`,
SkeletalAnimation: `${url}/${version}/manual/zh/animation/skeletal-animation.html`,
Expand Down
1 change: 0 additions & 1 deletion native/cocos/math/Vec2.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ class CC_DLL Vec2 {
/** Calculates cross product of two points.
@return float
@since v2.1.4
@deprecated since v3.8.0, There is no physical meaning.
*/
inline float cross(const Vec2 &other) const {
return x * other.y - y * other.x;
Expand Down

0 comments on commit 72db332

Please sign in to comment.