-
Notifications
You must be signed in to change notification settings - Fork 439
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
Conversation
/// 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; |
There was a problem hiding this comment.
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>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gltf と対応する index アクセス
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
#1096
Runtime Resources にアクセスするためのプロパティを追加。
また
ShowMeshes()
とEnableUpdateWhenOffscreen()
が関係のないレンダラを操作していたバグを修正。