question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is `setUsage` and how to i replace the deprecated `setDynamic`?

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Mugen87commented, Jan 30, 2020
0reactions
pailheadcommented, Jan 31, 2020

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/Face3

The 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found