Comments (6)
I'd guess that instead of referencing the mesh GILES is trying to write all the vertex & tri data. How big (vertex/tri count-wise) is this mesh? If you replace it with a lower poly version does this error still occur?
from giles.
If I delete manually (in editor, while running) a lot of subobjects of the prefab it does save.
Since the prefab is quite complex, I'll take the time to analyze what subobject(s) is causing the problem. I have a few 65k vertices objects that I could get rid of, or simplify at least...
However, is there a way to make GILES writting in binary format (which should be quite smaller) or avoiding to write all the vertex & triangles data?
from giles.
It should be avoiding writing the mesh data currently; if it's doing that now that is a bug.
On writing binary, that would be a good feature request.
from giles.
It seems it writes the mesh data for all children of the prefab.
I'm not a pro of Unity, but I'll give a look to the code to check if I can find something...
from giles.
Ok, it seems that all the children information is not needed. So I can have a 3kb file that loads correctly the full object, instead of a >500MB (deleting half of the children). I'm still trying to figure out why though... it should not serialize those children at all.
from giles.
I did a workaround fix: I do not generate children if it's a resource. However I don't think it's the ideal solution, but since I don't need any resource's child, I think it will work for me for now.
pb_SceneNode.cs from ln 90
// avoid calling constructor which automatically rebuilds the matrix
transform = new pb_Transform();
transform.SetTRS(root.transform);
children = new List<pb_SceneNode>();
if (metadata.assetType != AssetType.Resource)
{
foreach (Transform t in root.transform)
{
if (!t.gameObject.activeSelf)
continue;
children.Add(new pb_SceneNode(t.gameObject));
}
}
from giles.
Related Issues (20)
- [Feature] allow overriding engine class names in the inspector
- Huge File Sizes HOT 8
- Touch input HOT 3
- Unity 5.4.0 beta API update causing error
- ObjectRaycast distance algorithm does not scale back
- Dynamic keyword requires `System.Runtime.CompilerServices.DynamicAttribute' to be defined HOT 13
- preview prefabs in the Resource Browser window
- InvalidOperationException: Current error context error is different to requested error. HOT 4
- UnassignedReferenceException when Child objects have components with unassigned Transform HOT 1
- Some shaders are missing.
- Non-uniform scale should be the exception rather than the rule
- Textures missing
- What about AssetBundle?
- [Features]What I wont to add until the end of 2020. HOT 9
- I want to use timeline in giles
- Is GILES still there on Asset store?
- Unsupported code HOT 3
- Use Giles in my project HOT 1
- Really cool project, only one question
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 giles.