Author Topic: Can anyone see whats wrong with this snippet?  (Read 1323 times)

2020-02-20, 10:11:04

Jpjapers

  • Active Users
  • **
  • Posts: 1725
    • View Profile
CoronaRenderer.adaptivity_targetError = 3.0

I cant find anything in the docs to suggest this isn't being used in the right way?

2020-02-20, 10:21:39
Reply #1

Frood

  • Active Users
  • **
  • Posts: 2001
    • View Profile
    • Rakete GmbH
You are trying to use the class itself. You need a/the instance of Corona. You can get it by "renderers.current", so the line would be:

Code: [Select]
renderers.current.adaptivity_targetError=3

Good Luck



Never underestimate the power of a well placed level one spell.

2020-02-20, 10:24:25
Reply #2

Jpjapers

  • Active Users
  • **
  • Posts: 1725
    • View Profile
You are trying to use the class itself. You need a/the instance of Corona. You can get it by "renderers.current", so the line would be:

Code: [Select]
renderers.current.adaptivity_targetError=3

Good Luck

Perfect thank you!