2
0
Эх сурвалжийг харах

Update SkeletonUtils documentation (#25649)

I tried to import SkeletonUtils as described in the documentation:

import { SkeletonUtils } from 'three/addons/utils/SkeletonUtils.js';

But looks like API changed and we should use import all as SkeletonUtils now:

import * as SkeletonUtils from 'three/addons/utils/SkeletonUtils.js';
Pavlo Mishchenko 2 жил өмнө
parent
commit
237db7010f

+ 1 - 1
docs/examples/en/utils/SkeletonUtils.html

@@ -21,7 +21,7 @@
 		</p>
 
 		<code>
-			import { SkeletonUtils } from 'three/addons/utils/SkeletonUtils.js';
+			import * as SkeletonUtils from 'three/addons/utils/SkeletonUtils.js';
 		</code>
 
 		<h2>Methods</h2>