What is `setUsage` and how to i replace the deprecated `setDynamic`?
See original GitHub issueThe console in my project is complaining that BufferAtttribute.setDynamic( boolean )
is deprecated. It says to use setUsage( value )
instead.
My problem is that i don’t know what usage is and how to use the usage. The description is not helpful to me, because i can sort of tell from the name of the method and the argument that it sets, usage to some value, but i’m unable to find out what the value type should be. With dynamic it seemed straightforward, it’s on or off.
.setUsage ( value : Usage ) : BufferAttribute Set usage to value.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What is setUsage on BufferAttribute? - Questions - three.js forum
My console is screaming at me that some method has been deprecated and renamed. The documentation says: .setUsage ( value : Usage )...
Read more >Webpack babel-loader runtime: Module build failed: TypeError
If I'm changing the plugin name to: plugins: ['transform-runtime'] , I get the following error: Module build failed: TypeError: this.
Read more >New Features Guide - FortiOS 7.0.0 - Amazon AWS
Replace FSSO-based FortiNAC tag connector with REST API 7.0.4 ... tags connector under Security Fabric > Fabric Connectors is deprecated.
Read more >S-Index - Documentation
Constructs a ServerListEntry from an Element . setAbapConnection(UC4ObjectName) - Method in class com.uc4.api.objects.SAPAgentPanel. Sets the ABAP Connection ...
Read more >Diff - refs/tags/android-6.0.1_r30^! - platform/external ... - Google Git
Change -Id: I51ac0942fe87204df102cfdce746b59a5cb5ff85 ... setUsage(Usage. ... + @Deprecated public void setInterleaved(){ ArrayList<VertexBuffer> vbs = new ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://discourse.threejs.org/t/what-is-setusage-on-bufferattribute/12441
It seem @DusanBosnjakKodiak is @pailhead’s alternative github account^^.
I think i was confused by looking for the method first. The argument is clickable, but it doesn’t take you anywhere. On closer inspection, neither does the property. Here for example, with
.copy()
you can click both on the argument and the return type. https://threejs.org/docs/#api/en/core/Face3The link under property refers to webgl, but there it’s all upper and snake case, three’s are pascal. Maybe this could be addressed by either having the method link to the property, or both link to the consts?
Sorry bout posting with two accounts, i find it really tedious to log in and out when my phone is always dead.