public SkeletalMeshMaterialProperty(NResourceSkeletalMesh res, int lod, int sec) { m_Res = res; m_Lod = lod; m_Section = sec; if (m_Res != null) { NMtlBase mtl = m_Res.GetMaterial(m_Lod, m_Section); if (mtl != null) { m_Loc = new NResourceLoc(mtl.Name); } } }
internal void ResetSkeletalMeshResource(NResourceSkeletalMesh mesh) { NSkeletalMeshComponent SMC = SkeletalMeshComponentPreview; if (SMC == null) { NLogger.Instance.WriteString(LogType.Debug, "没有创建可预览SkeletalMeshComponent..."); return; } try { if (mesh != null) { SMC.ResetResource(mesh, true); m_actorBox = SMC.GetBoundingBox(); } } catch (System.Exception e) { NexusEditor.Program.ShowException(e, "Skeletal Mesh Resource Reset FAILED!"); } }
public ResSkeletalMeshProperty(NResourceSkeletalMesh res) : base(res) { }