Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add properties & Fix the bug in RuntimeGltfInstance #1109

Merged
merged 4 commits into from
Jul 19, 2021

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented Jul 19, 2021

#1096

Runtime Resources にアクセスするためのプロパティを追加。

また ShowMeshes()EnableUpdateWhenOffscreen() が関係のないレンダラを操作していたバグを修正。

@Santarh Santarh requested a review from ousttrue July 19, 2021 07:45
/// Runtime でモデルを Destory したときに関連リソース(Texture, Material...などの UnityEngine.Object)を自動的に Destroy する。
/// </summary>
public class RuntimeGltfInstance : MonoBehaviour, IResponsibilityForDestroyObjects
{
/// <summary>
/// this is UniGLTF root gameObject
/// </summary>
public GameObject Root => this.gameObject;
public GameObject Root => (this != null) ? this.gameObject : null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Destory済み?


public IReadOnlyList<(SubAssetKey, UnityEngine.Object)> RuntimeResources => m_resources;
private readonly List<Transform> _nodes = new List<Transform>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gltf と対応する index アクセス

Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ousttrue ousttrue merged commit 3579893 into vrm-c:master Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants