Comments (5)
I assume you are referring to the MeshGenerator
in the spine-unity runtime. By default it scales the Z component as well, however the commented line is there in case you want to customize the runtime and only scale the X and Y components.
If I misunderstood what you mean, please explain in more detail what you would like to know.
from spine-runtimes.
In Unity, vbi [i] *=scale; Will generate GC, while the rest will not
from spine-runtimes.
@prefectover How did you get to the assumption that this would cause any GC-relevant allocations?
from spine-runtimes.
In Unity, the Vector2 data is multiplied by the following method
public static Vector2 operator *(Vector2 a, float d)
{
return new Vector2(a.x * d, a.y * d);
}
Use vbi[i].x *= scale; vbi[i].y *= scale; Not 'new Vector2()'
from spine-runtimes.
@prefectover Thanks for sharing your thoughts. The question persists, how do you get the impression that this new Vector2()
, which BTW is a Vector3
, will be allocated on the heap?
from spine-runtimes.
Related Issues (20)
- [spine-csharp] MathUtils.Atan2Deg isn't defined when USE_FAST_SIN_COS_ATAN2_APPROXIMATIONS is defined HOT 1
- [TS] MixDuration setter issues HOT 3
- [unity] UpdateWhenInvisible incorrect when using SkeletonRenderSeparator
- [unity] SkeletonGraphicRenderTexture incorrect alpha blending
- [ue] The `SetSlotColor` node accepts only 0 or 1 `Color` value, despite its parameters being of byte types.
- [ue] Quickly support UE5.4.1 HOT 1
- [godot]Rotating bones with `Gravity` of physics constraints gives different results than in the editor.
- [flutter] cpp file not found HOT 2
- [flutter] Animation may not be applied correctly to the skin bones of the mix-and-match skeleton in the Dress Up example. HOT 1
- [ts][pixi] Add `tint` property for Pixi's convention HOT 1
- [unity] SkeletonRenderTexture ArgumentException when mesh empty HOT 1
- [godot] The `Preview Skin` property of `SpineSprite` may override the skin set by code.
- [ts][pixi] Support for Pixi 8.x HOT 2
- [unity] SkeletonRenderSeparator mesh broken with slot alpha 0 HOT 2
- [unity] `URP/2D/Skeleton Lit` shader incorrectly displays Additive slots HOT 1
- [defold] Update plugin
- [unity] SkeletonRenderTexture not displaying on Vulkan HOT 1
- [player] Unify asset location config
- [UE] Crash when callbacks called HOT 1
- [unity] Physics inheritance ignored transform rotation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spine-runtimes.