Comments (6)
Also
this.vertices.push({X:0,Y:0,Z:0});
console.log( 'vertices in beginplay', this.vertices.length );
Will reveal
< vertices in beginplay 0
from unreal.js.
Assuming arrays are TArrays https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/TArrays/index.html
These will not work either:
this.vertices.Init( 10, 5 );
this.vertices.Append( {X:0,Y:0,Z:0} );
from unreal.js.
Please see https://github.com/ncsoft/Unreal.js/wiki/Dynamic-array:-Limitation. Currently dynamic array isn't fully implemented.
To answer to your question, properties are inherited from their base class.
from unreal.js.
Ah thanks! I assume that means the dynamic arrays are also inherited, it's just not working at the moment? According to the wiki it should look something like
this.vertices.ArrayProperty = [ { X: 0, Y: 0, Z: 0 }, { X: 200, Y: 0, Z: 0 }, { X: 200, Y: 200, Z: 0 } ];
Is that correct?
from unreal.js.
Oh I got it.
this.vertices = [ { X: 0, Y: 50, Z: 50 }, { X: 200, Y: 0, Z: 0 }, { X: 200, Y: 200, Z: 0 } ];
This works.
from unreal.js.
Okay, then I'll close this issue. ๐
from unreal.js.
Related Issues (20)
- Actor.GetActorLocation() working in editor, not in packaged build HOT 1
- Unable to build for Android on UE5 (5.0.3) ๐ญ HOT 4
- What is this principle๏ผ HOT 1
- how to user GWorld.GetActorOfClass() HOT 3
- bp How to call unreal.js or override bp HOT 2
- After packing, Blueprint.Load is invalid HOT 6
- don't override blueprint method
- Not working in UE 5.1 HOT 10
- Make a proper documentation PLEASE! HOT 1
- Pass js vaiables to blueprint HOT 3
- [Question] Use this as ingame scripting? HOT 9
- UE5.03 Build for android "lv8_monolith" issue HOT 1
- Program crashes
- Not able to build with version 5.2 HOT 1
- Failed to package ue5.1 to linux. Procedure HOT 1
- Failed to package for windows
- Unreal 5.3 support HOT 10
- How to include npm packages? Ethers.js? HOT 1
- How to bind UMG Widget to JS? HOT 2
- How to Debug JavaScript with Rider ?
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 unreal.js.