public ClipMuscleConstant(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; DeltaPose = new HumanPose(assetsFile); StartX = new XForm(assetsFile); LeftFootStartX = new XForm(assetsFile); RightFootStartX = new XForm(assetsFile); Clip = new Clip(assetsFile); if (IsReadStopX) { StopX = new XForm(assetsFile); } if (IsReadMotion) { MotionStartX = new XForm(assetsFile); MotionStopX = new XForm(assetsFile); } if (IsVector3) { AverageSpeed3 = new Vector3f(); } else { AverageSpeed4 = new Vector4f(); } }
private Object FindObject(int fileIndex, long pathID, bool isSafe) { if (fileIndex >= m_dependencies.Count) { if (isSafe) { return(null); } throw new Exception($"AssetsFile with index {fileIndex} was not found in dependencies"); } AssetsFilePtr filePtr = m_dependencies[fileIndex]; IAssetsFile file = m_collection.FindAssetsFile(filePtr); if (file == null) { if (isSafe) { return(null); } throw new Exception($"AssetsFile with index {fileIndex} was not found in collection"); } Object @object = file.FindObject(pathID); if (@object == null) { if (isSafe) { return(null); } throw new Exception($"Object with path ID {pathID} was not found"); } return(@object); }
public TextureParameter(IAssetsFile assetsFile) { if (assetsFile == null) { throw new Exception(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public TextureSettings(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public AssetInfo(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } Asset = new PPtr <Object>(assetsFile); }
public LayerConstant(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } BodyMask = new HumanPoseMask(assetsFile); }
private static AssetInfo CreateAssetsInfo(IAssetsFile assetsFile) { int classID = (int)ClassIDType.AnimatorStateMachine; ClassIDMap classIDMap = new ClassIDMap(classID, classID); AssetInfo assetInfo = new AssetInfo(assetsFile, 0, classIDMap); return(assetInfo); }
public QuaternionCurve(IAssetsFile assetsFile, string path) : this(assetsFile) { Path = path; Curve.PreInfinity = 2; Curve.PostInfinity = 2; Curve.RotationOrder = 4; }
public AnimationClipBindingConstant(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public HandPose(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } GrabX = new XForm(assetsFile); }
public Vector3Curve(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } Curve = new AnimationCurveTpl <Vector3f>(assetsFile); }
public VertexData(IAssetsFile assetsFile, byte meshCompression) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public ShaderSubProgram(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public BlendShapeData(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public ValueArray(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public FastPropertyName(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public AnimationEvent(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } ObjectReferenceParameter = new PPtr <Object>(assetsFile); }
public SerializedProgram(IAssetsFile assetsFile) { if (assetsFile == null) { throw new Exception(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public QuaternionCurve(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } Curve = new AnimationCurveTpl <Quaternionf>(assetsFile); }
public PPtrKeyframe(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException("version"); } Script = new PPtr <Object>(assetsFile); }
public UnityPropertySheet(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public SerializedShaderState(IAssetsFile assetsFile) { if (assetsFile == null) { throw new Exception(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public ConstantBuffer(IAssetsFile assetsFile) { if (assetsFile == null) { throw new Exception(nameof(assetsFile)); } m_assetsFile = assetsFile; }
private static AssetInfo CreateAssetsInfo(IAssetsFile assetsFile) { int classID = (int)ClassIDType.BlendTree; ClassIDMap classIDMap = new ClassIDMap(classID, classID); AssetInfo assetInfo = new AssetInfo(assetsFile, 0, classIDMap); return(assetInfo); }
public Collider(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } X = new XForm(assetsFile); }
public Axes(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } Limit = new Limit(assetsFile); }
public Skeleton(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public StateConstant(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public AnimationCurveTpl(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } m_assetsFile = assetsFile; }
public ChildAnimatorStateMachine(IAssetsFile assetsFile) { if (assetsFile == null) { throw new ArgumentNullException(nameof(assetsFile)); } StateMachine = new PPtr <AnimatorStateMachine>(assetsFile); }