GithubHelp home page GithubHelp logo

Comments (5)

AlmarM36 avatar AlmarM36 commented on May 26, 2024 1

Hi,

That allows me to change the scale again, so that's perfect. I did notice however that it still doesn't reproduce the exact same particle size as before the upgrade to version 4. It's somewhat smaller.

Original correct size

  • No version update
  • Transform.localScale = (25, 25, 25)
    original

After version update

  • Transform.localScale = (1, 1, 1)
  • UIParticle.Scale = 1
    after-update

After version update with UIParticle auto scale mode and original transform scale

  • Transform.localScale = (25, 25, 25)
  • UIParticle.Scale = 1
  • Auto Scale Mode = UIParticle
    image

I can fix this myself by copying the value that UIParticle sets to the transform scale automatically into UIParticle.Scale and resetting the transform scale back to it's original size with Auto Scale Mode set to None or UIParticle.

Manual fix

  • Transform.localScale = (25, 25, 25)
  • UIParticle.Scale = 4.971429 (automatically calculated by UIParticle after version update)
  • Auto Scale Mode = UIParticle
  • Latest v4 version
    image

Is this the intended behaviour?

On a side note, sometimes I get the following exception, but I'm unsure how to reproduce it:

NullReferenceException: Object reference not set to an instance of an object
Coffee.UIExtensions.UIParticleRenderer.GetWorldScale () (at Library/PackageCache/com.coffee.ui-particle@692c3e8798/Runtime/UIParticleRenderer.cs:522)
Coffee.UIExtensions.UIParticleRenderer.Set (Coffee.UIExtensions.UIParticle parent, UnityEngine.ParticleSystem ps, System.Boolean isTrail) (at Library/PackageCache/com.coffee.ui-particle@692c3e8798/Runtime/UIParticleRenderer.cs:252)
Coffee.UIExtensions.UIParticle.RefreshParticles (System.Collections.Generic.List`1[T] particles) (at Library/PackageCache/com.coffee.ui-particle@692c3e8798/Runtime/UIParticle.cs:475)
Coffee.UIExtensions.UIParticle.OnEnable () (at Library/PackageCache/com.coffee.ui-particle@692c3e8798/Runtime/UIParticle.cs:289)

Thanks!

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 26, 2024

Thank you for your reporting!

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 26, 2024

Please try develop-295-disable-auto-scaling branch.

"com.coffee.ui-particle": "https://github.com/mob-sakai/ParticleEffectForUGUI.git?path=Packages/src#develop-295-disable-auto-scaling",

from particleeffectforugui.

github-actions avatar github-actions commented on May 26, 2024

πŸŽ‰ This issue has been resolved in version 4.6.3 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

from particleeffectforugui.

github-actions avatar github-actions commented on May 26, 2024

πŸŽ‰ This issue has been resolved in version 4.6.3 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

from particleeffectforugui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.